Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Acksop authored Mar 26, 2024
1 parent 522f041 commit f38397d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ $match = $router->match();
* ]
*/

if( is_array($this->match) && is_callable( $this->match['target'] ) ) {
call_user_func_array( $this->match['name'], $this->match['params'] );
if( is_array($match) && is_callable( $match['target'] ) ) {
call_user_func_array( $match['name'], $match['params'] );
} else {
// no route was matched
header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
Expand Down

0 comments on commit f38397d

Please sign in to comment.