From 09a9b76ffe1e981fdcf9689d802aafd6e64d7268 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 1 Dec 2008 23:05:49 -0500 Subject: init() returns boolean success value darcs-hash:20081202040549-5ed1f-b23a6b80b6e1823a97a7b446d9c4e59f8744b904.gz --- index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 7d1eede46..5c16d2fd5 100644 --- a/index.php +++ b/index.php @@ -52,8 +52,9 @@ if (file_exists($actionfile)) { } $config['db']['database'] = $mirror; } - call_user_func(array($action_obj, 'init'), $_REQUEST); - call_user_func(array($action_obj, 'handle'), $_REQUEST); + if (call_user_func(array($action_obj, 'init'), $_REQUEST)) { + call_user_func(array($action_obj, 'handle'), $_REQUEST); + } } else { common_user_error(_('Unknown action')); } \ No newline at end of file -- cgit v1.2.3-54-g00ecf