From: Jan Schneider Date: Tue, 14 Jul 2009 12:51:36 +0000 (+0200) Subject: Fix variable name. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=35be412ce680ccb63ee6780650e2bb0208a3f858;p=horde.git Fix variable name. Return after fatal(), it doesn't exit if called in a block for example. --- diff --git a/chora/lib/Chora.php b/chora/lib/Chora.php index 6e53d7bf8..4a0fe23f4 100644 --- a/chora/lib/Chora.php +++ b/chora/lib/Chora.php @@ -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