Permalink
Browse files

Fixed a bug where a before filter that returned a redirect would not …

…halt the request
  • Loading branch information...
1 parent 9991d33 commit 66f113ffdf09668810451c1980617da4d0118a71 @jim committed Jun 25, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 app.php
  2. +1 −1 lib/fitzgerald.php
View
2 app.php
@@ -9,7 +9,7 @@ class Application extends Fitzgerald {
$app = new Application();
- // Define your url mappings. TAke advantage of placeholders and regexes for safety.
+ // Define your url mappings. Take advantage of placeholders and regexes for safety.
$app->run();
?>
View
2 lib/fitzgerald.php
@@ -217,7 +217,7 @@ private function execute($methodName, $params) {
if (isset($this->filters[$methodName])) {
for ($i=0; $i < count($this->filters[$methodName]); $i++) {
$return = call_user_func(array($this, $this->filters[$methodName][$i]));
- if ($return) {
+ if (!is_null($return)) {
return $return;
}
}

0 comments on commit 66f113f

Please sign in to comment.