mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Merge pull request #1432 from RaspAP/fix/parse-config
Fix: prevent duplicate array values in ParseConfig()
This commit is contained in:
commit
ce001aeffa
1 changed files with 1 additions and 0 deletions
|
@ -445,6 +445,7 @@ function ParseConfig($arrConfig)
|
|||
foreach ($arrConfig as $line) {
|
||||
$line = trim($line);
|
||||
if ($line == "" || $line[0] == "#") {
|
||||
$config[$option] = null;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue