Fix variable name.
authorJan Schneider <jan@horde.org>
Tue, 14 Jul 2009 12:51:36 +0000 (14:51 +0200)
committerJan Schneider <jan@horde.org>
Tue, 14 Jul 2009 12:51:36 +0000 (14:51 +0200)
Return after fatal(), it doesn't exit if called in a block for example.

chora/lib/Chora.php

index 6e53d7b..4a0fe23 100644 (file)
@@ -44,7 +44,7 @@ class Chora
         try {
             $GLOBALS['sourceroots'] = Horde::loadConfiguration('sourceroots.php', 'sourceroots');
         } catch (Horde_Exception $e) {
-            $GLOBALS['notification']->push($GLOBALS['sourceroots']);
+            $GLOBALS['notification']->push($e);
             $GLOBALS['sourceroots'] = array();
         }
         $sourceroots = self::sourceroots();
@@ -95,6 +95,7 @@ class Chora
         $acts = array();
         if (!isset($defaultActs['rt'])) {
             self::fatal(_("No repositories found."));
+            return;
         }
 
         /* See if any have been passed as GET variables, and if so, assign