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

@@ -136,7 +136,7 @@ class Route {
*/
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']));
}
/**