diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index c648b2ad..417110b4 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -416,7 +416,7 @@ class Node extends Application */ public function dispatch() { - if (empty($node->callback)) { + if (empty($this->callback)) { return JSON::to(404, 'Page not found.'); } return call_user_func($this->callback, \request());