This commit is contained in:
PhantomVl 2018-10-23 09:24:03 +03:00
parent 4a89db8742
commit f8e2080df6

View file

@ -148,6 +148,9 @@ class srvinterface {
foreach ($ast_out as $line) { foreach ($ast_out as $line) {
if (strlen($line) > 3) { if (strlen($line) > 3) {
list ($line, $junk) = explode(' ', $line); list ($line, $junk) = explode(' ', $line);
if (!is_bool(strpos($line,':'))) {
$line = trim(substr($line, 0, strpos($line, ':')));
}
if (isset($ast_key[$line])) { if (isset($ast_key[$line])) {
if (strlen($ast_key[$line]) < 1) { if (strlen($ast_key[$line]) < 1) {
$ast_key[$line] = $line; $ast_key[$line] = $line;