فهرست منبع

fix is_callable

andre 1 سال پیش
والد
کامیت
f5a1c9a82b
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      core/App/Controllers/Router.php

+ 2 - 2
core/App/Controllers/Router.php

@@ -93,7 +93,7 @@ class Router
             return false;
         }
 
-        if (!is_callable([$this->controllerClass, $this->controllerMethod]))
+        if (!is_callable([$this->controllerClass, $this->controllerMethod], true))
         {
 
             logModuleCall(
@@ -104,7 +104,7 @@ class Router
                 $this->controllerMethod
             );
 
-            return true;
+            return false;
         }
 
         return true;