Fix argument passing (Bug #8846).
authorJan Schneider <jan@horde.org>
Mon, 8 Feb 2010 09:15:59 +0000 (10:15 +0100)
committerJan Schneider <jan@horde.org>
Mon, 8 Feb 2010 09:16:26 +0000 (10:16 +0100)
horde/bin/db_migrate

index f405064..3f9f514 100755 (executable)
@@ -23,7 +23,7 @@ if (empty($args[0])) {
     $cli->fatal("An application argument is required");
 }
 $app = $args[0];
-if (!in_array($app, $GLOBALS['registry']->listApps('inactive', 'hidden', 'notoolbar', 'admin', 'active'))) {
+if (!in_array($app, $GLOBALS['registry']->listApps(array('inactive', 'hidden', 'notoolbar', 'admin', 'active')))) {
     $cli->fatal("$app is not a configured Horde application");
 }
 $action = 'up';