diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 598c8448..15f38b16 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -422,10 +422,10 @@ class Node extends Application */ public function dispatch() { - if (empty($node->callback)) { + if (empty($this->callback)) { return JSON::to(404, $node->_error ?? 'Page not found.'); } - return call_user_func($node->callback, \request()); + return call_user_func($this->callback, \request()); }