From 347ad40da10afa39b6c8cabd73937a21a3b629f6 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 30 Jan 2026 23:08:26 +0100 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 0d26f89c..76d7877d 100644 --- a/system/functions.php +++ b/system/functions.php @@ -931,11 +931,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(strpos($line, 'dofile') !== false) {