We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2e6841 + c9e7c88 commit d8df2efCopy full SHA for d8df2ef
server/lib/classes/ini_parser.inc.php
@@ -41,7 +41,7 @@ function parse_ini_string($ini) {
41
if($line != '') {
42
if(preg_match("/^\[([\w\d_]+)\]$/", $line, $matches)) {
43
$section = strtolower($matches[1]);
44
- } elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && $section != null) {
+ } elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && isset($section) && $section != null) {
45
$item = trim($matches[1]);
46
$this->config[$section][$item] = trim($matches[2]);
47
}
0 commit comments