mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-25 22:30:15 +02:00
Fix xdebug warnings in load_config_lua
This commit is contained in:
parent
5cfa3a697f
commit
6cf4b9dac5
@ -982,11 +982,12 @@ function load_config_lua($filename)
|
||||
foreach($lines as $ln => $line)
|
||||
{
|
||||
$line = trim($line);
|
||||
if(@$line[0] === '{' || @$line[0] === '}') {
|
||||
if(isset($line[0]) && ($line[0] === '{' || $line[0] === '}')) {
|
||||
// arrays are not supported yet
|
||||
// just ignore the error
|
||||
continue;
|
||||
}
|
||||
|
||||
$tmp_exp = explode('=', $line, 2);
|
||||
if(str_contains($line, 'dofile')) {
|
||||
$delimiter = '"';
|
||||
|
Loading…
x
Reference in New Issue
Block a user