소스 검색

autoloader fix

walkor 10 년 전
부모
커밋
fb6fe3bba3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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";
         }