Skip to content
Snippets Groups Projects
Commit 5b60095a authored by Michael Große's avatar Michael Große
Browse files

fix: set default value for empty var

If an config value is not set in the input lines, initialize it as empty
string to prevent PHP Notices complaining about $line[1] being not set.
parent c55b109c
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,9 @@ function linesToHash($lines, $lower=false) {
if(empty($line)) continue;
$line = preg_split('/\s+/',$line,2);
// Build the associative array
if (empty($line[1])) {
$line[1] = '';
}
if($lower){
$conf[strtolower($line[0])] = $line[1];
}else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment