mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-25 14:20:14 +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)
|
foreach($lines as $ln => $line)
|
||||||
{
|
{
|
||||||
$line = trim($line);
|
$line = trim($line);
|
||||||
if(@$line[0] === '{' || @$line[0] === '}') {
|
if(isset($line[0]) && ($line[0] === '{' || $line[0] === '}')) {
|
||||||
// arrays are not supported yet
|
// arrays are not supported yet
|
||||||
// just ignore the error
|
// just ignore the error
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmp_exp = explode('=', $line, 2);
|
$tmp_exp = explode('=', $line, 2);
|
||||||
if(str_contains($line, 'dofile')) {
|
if(str_contains($line, 'dofile')) {
|
||||||
$delimiter = '"';
|
$delimiter = '"';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user