Skip to content

Commit

Permalink
revert fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed Aug 6, 2020
1 parent 856ed8e commit d85c701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RouterEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private function getMethod($controller)
//Introduced in v2.1.2
//Give Scrawler last chance to resolve index method before declaring not found
//Store the last tested function before all index used for better debugging
if (!isset($this->path_info[1])) {
// if (!isset($this->path_info[1])) {
if (isset($function)) {
$last_function = $function;
}
Expand All @@ -243,7 +243,7 @@ private function getMethod($controller)
array_unshift($this->path_info, '');
return $function;
}
}
// }

if (isset($last_function)) {
$this->error('Neither '.$function.' method nor '.$last_function.' method you found in '.$controller.' controller');
Expand Down

0 comments on commit d85c701

Please sign in to comment.