fixed bug in route to controller delegation.

This commit is contained in:
Taylor Otwell 2011-10-07 12:26:47 -05:00
parent f50a492510
commit 4edcc321aa
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ protected function delegate(Route $route, Delegate $delegate)
*/
protected function callable($method)
{
return $method == 'before' or $method == 'after' or strncmp($method, '_', 1) === 0;
return $method !== 'before' and $method !== 'after' and strncmp($method, '_', 1) !== 0;
}
/**

View File

@ -136,7 +136,7 @@ public function filters($name)
*/
public function delegates()
{
return is_array($this->callback) and isset($this->callback['delegate']);
return is_string($this->callback) or (is_array($this->callback) and isset($this->callback['delegate']));
}
/**