From 35be412ce680ccb63ee6780650e2bb0208a3f858 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 14 Jul 2009 14:51:36 +0200 Subject: [PATCH] Fix variable name. Return after fatal(), it doesn't exit if called in a block for example. --- chora/lib/Chora.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.0