瀏覽代碼

Update /install

star7th 9 年之前
父節點
當前提交
c60d0ba320
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      install/database.php

+ 2 - 2
install/database.php

@@ -12,7 +12,7 @@ header("Content-type: text/html; charset=utf-8");
 // 检测PHP环境
 if(version_compare(PHP_VERSION,'5.3.0','<'))  die(L('require_php_version'));
 
-if($f = file_get_contents("./install.lock")){
+if((file_exists('./install.lock') && $f = file_get_contents("./install.lock")){
   echo L("lock").'<br>';
   exit();
 }
@@ -194,4 +194,4 @@ if (!$go) {
 
  });
 
-</script>
+</script>