From f8e2080df610e05e4c5cadf7ab4e3ac5cd459117 Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Tue, 23 Oct 2018 09:24:03 +0300 Subject: [PATCH] Bug fix --- Sccp_manager.inc/srvinterface.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sccp_manager.inc/srvinterface.class.php b/Sccp_manager.inc/srvinterface.class.php index 4e9207e..ebaf0fe 100644 --- a/Sccp_manager.inc/srvinterface.class.php +++ b/Sccp_manager.inc/srvinterface.class.php @@ -148,6 +148,9 @@ class srvinterface { foreach ($ast_out as $line) { if (strlen($line) > 3) { list ($line, $junk) = explode(' ', $line); + if (!is_bool(strpos($line,':'))) { + $line = trim(substr($line, 0, strpos($line, ':'))); + } if (isset($ast_key[$line])) { if (strlen($ast_key[$line]) < 1) { $ast_key[$line] = $line;