Skip to content

Commit c9e7c88

Browse files
committed
Fix PHP 8 warning from cronjob_jailkit_maintenance, #6680
1 parent b2e6841 commit c9e7c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/ini_parser.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function parse_ini_string($ini) {
4141
if($line != '') {
4242
if(preg_match("/^\[([\w\d_]+)\]$/", $line, $matches)) {
4343
$section = strtolower($matches[1]);
44-
} elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && $section != null) {
44+
} elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && isset($section) && $section != null) {
4545
$item = trim($matches[1]);
4646
$this->config[$section][$item] = trim($matches[2]);
4747
}

0 commit comments

Comments
 (0)