Return array if an array was requested.
authorJan Schneider <jan@horde.org>
Sun, 23 Aug 2009 13:49:12 +0000 (15:49 +0200)
committerJan Schneider <jan@horde.org>
Sun, 23 Aug 2009 13:49:12 +0000 (15:49 +0200)
framework/Core/lib/Horde.php

index 1f71c11..ed64e3f 100644 (file)
@@ -849,7 +849,7 @@ HTML;
         // file exist.
         if (!$was_included) {
             self::logMessage(sprintf('Failed to import configuration file "%s".', $config_dir . $config_file), __FILE__, __LINE__, PEAR_LOG_DEBUG);
-            return;
+            return is_array($var_names) ? array() : null;
         }
 
         if (isset($output) && $show_output) {