Browse Source

bugfix php8.1

andre 1 year ago
parent
commit
6e2d9810f4
1 changed files with 3 additions and 3 deletions
  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)
     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)
     public function resolveAjax($resault)