Explorar el Código

autoloader fix

walkor hace 10 años
padre
commit
fb6fe3bba3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Workerman/Autoloader.php

+ 1 - 1
Workerman/Autoloader.php

@@ -21,7 +21,7 @@ class Autoloader
     {
         $class_path = str_replace('\\', DIRECTORY_SEPARATOR ,$name);
         $class_file = self::$_appInitPath . '/' . $class_path.'.php';
-        if(is_file($class_file))
+        if(!is_file($class_file))
         {
             $class_file = WORKERMAN_ROOT_DIR . DIRECTORY_SEPARATOR . "$class_path.php";
         }