fix typo and fix '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"' warning (as of php-7.3)

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-09 08:31:21 +01:00
parent db36d57683
commit 9522e0cfb1

View File

@@ -139,7 +139,7 @@ class ConfigDaemon {
break;
case "include":
// Includes, get the part we want via xpath
$includes = $this->fullxml->xpath((string)$chile);
$includes = $this->fullxml->xpath((string)$child);
foreach ($includes[0] as $include) {
// The "include" is also a child, so just skip it, would make a mess later
if ((string)$include->getName() == 'include') {
@@ -148,11 +148,9 @@ class ConfigDaemon {
$preparsed[] = $include;
}
break;
default: continue;
}
}
break;
default: continue;
}
}