summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php5
-rw-r--r--lib/action.php1
2 files changed, 4 insertions, 2 deletions
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
diff --git a/lib/action.php b/lib/action.php
index ba4fc71fb..895a0d48c 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -30,6 +30,7 @@ class Action { // lawsuit
function init($argarray) {
$this->args =& common_copy_args($argarray);
+ return true;
}
# For comparison with If-Last-Modified