判断方法写错

Signed-off-by: hitsword <admin@hitsword.com>
master
hitsword 2020-01-09 21:34:58 +08:00
parent 7b630c9021
commit f81df14fde
1 changed files with 2 additions and 2 deletions

View File

@ -136,11 +136,11 @@
}
$filebytes = file_put_contents(_HYCONF.$row['server_name'].'.conf', $conf); //写入内容
//access_log_path不存在的话创建
if (file_exists(!$row['access_log_path'])) {
if (!file_exists($row['access_log_path'])) {
file_put_contents($row['access_log_path'], '');
}
//error_log_path不存在的话创建
if (file_exists(!$row['error_log_path'])) {
if (!file_exists($row['error_log_path'])) {
file_put_contents($row['error_log_path'], '');
}
}