mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
Fixed some warning in PHP 7.1
Warning: Cannot assign an empty string to a string offset * fixed Notice with tempnam()
This commit is contained in:
@@ -1199,7 +1199,7 @@ function load_config_lua($filename)
|
||||
if(!@file_exists($config_file))
|
||||
die('ERROR: Cannot find ' . $filename . ' file.');
|
||||
|
||||
$tempFile = tempnam('/tmp', 'lua');
|
||||
$tempFile = @tempnam('/tmp', 'lua');
|
||||
$file = fopen($tempFile, 'w');
|
||||
if(!$file) die('Cannot load server config!');
|
||||
|
||||
|
Reference in New Issue
Block a user