Browse Source

Update /install

star7th 9 years ago
parent
commit
afe31e7482
1 changed files with 2 additions and 2 deletions
  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>