diff --git a/include/functions.php b/include/functions.php index 8f76a90..a81e369 100644 --- a/include/functions.php +++ b/include/functions.php @@ -175,8 +175,8 @@ function getConfigItem($section, $key, $configs) { while(($sectionpos < $len) && (startsWith($configs[$sectionpos],$key."=") === false) ) { if (startsWith($configs[$sectionpos],"[")) { return null; - } - $sectionpos++; + } + $sectionpos++; } if ($sectionpos < $len) { return substr($configs[$sectionpos], strlen($key) + 1);