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:
slawkens1
2017-05-04 18:32:34 +02:00
parent 636a54c70d
commit a93bd4a0fc
4 changed files with 5 additions and 6 deletions

View File

@@ -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!');