Kaynağa Gözat

Update /install

star7th 9 yıl önce
ebeveyn
işleme
c60d0ba320
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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>