From 6cf4b9dac52dc9de565a9d23b088b776063858da Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 22 Jun 2025 18:51:20 +0200 Subject: [PATCH] Fix xdebug warnings in load_config_lua --- system/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/functions.php b/system/functions.php index add481e5..3ef7a8a2 100644 --- a/system/functions.php +++ b/system/functions.php @@ -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 = '"';