walkor vor 10 Jahren
Ursprung
Commit
fb6fe3bba3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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";
         }