rabin 1 년 전
부모
커밋
700a253ad3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Dever/Log.php

+ 1 - 1
src/Dever/Log.php

@@ -65,7 +65,7 @@ class Log
             $exists = false;
         }
         $state = error_log($log, 3, $file);
-        if (!$exists) {
+        if ($state && !$exists) {
             @chmod($file, 0755);
             @system('chmod -R 777 ' . $file);
         }