Skip to content

Commit d8df2ef

Browse files
author
Till Brehm
committed
Merge branch '6680-cronjob_jailkit_maintenance-warn' into 'develop'
Fix PHP 8 warning from cronjob_jailkit_maintenance, #6680 Closes #6680 See merge request ispconfig/ispconfig3!1874
2 parents b2e6841 + c9e7c88 commit d8df2ef

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)