忽略读取sql文件内容的错误

This commit is contained in:
Wisp X
2018-11-23 09:49:22 +08:00
parent 0ef14f3df0
commit 5bdfb057b3
+1 -1
View File
@@ -56,7 +56,7 @@ class Install extends Controller
$password = $this->request->post('password');
$hostport = $this->request->post('hostport');
try {
if (!$sqlFile = file_get_contents($rootPath . 'install.sql')) {
if (!$sqlFile = @file_get_contents($rootPath . 'install.sql')) {
throw new Exception('安装文件不存在');
}
$mysqli = new \mysqli($hostname, $username, $password, $database, $hostport);