소스 검색

bugfix php8.1

andre 1 년 전
부모
커밋
6e2d9810f4
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      core/App/Controllers/Instances/AddonController.php

+ 3 - 3
core/App/Controllers/Instances/AddonController.php

@@ -65,12 +65,12 @@ abstract class AddonController implements DefaultController
 
     public function isValidIntegrationCallback($callback = null)
     {
-        if (is_callable($callback))
+        if(!is_array($callback))
         {
-            return true;
+            return false;
         }
 
-        return false;
+        return $class && $method && method_exists($class, $method);
     }
 
     public function resolveAjax($resault)