diff --git a/README.md b/README.md index 9e9e3a4..7ddcebc 100644 --- a/README.md +++ b/README.md @@ -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');