diff --git a/classes/hookloader.class.php b/classes/hookloader.class.php index 57479d4f6..71a77bde7 100755 --- a/classes/hookloader.class.php +++ b/classes/hookloader.class.php @@ -346,7 +346,7 @@ public function load($trigger) */ public function scan_all_plugins($dir = 'plugins', $enabled = false) { - $plugins = false; + $plugins = array(); $dir = ($dir=='plugins') ? $this->_hook_dir : $dir; if (($folders = glob($dir.'/'.'*', GLOB_ONLYDIR)) !== false) { foreach ($folders as $folder) {