AastraAsterisk: fix database_show not to include the number of elements
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
diff --git a/include/AastraAsterisk.class.php b/include/AastraAsterisk.class.php
index dc930bb..c4c5ee1 100644
--- a/include/AastraAsterisk.class.php
+++ b/include/AastraAsterisk.class.php
@@ -397,6 +397,8 @@
$data=explode("\n",$r['data']);
$db=array();
array_shift($data);
+ unset($data[count($data)-2]);
+ unset($data[count($data)-1]);
foreach($data as $line)
{
$temp = explode(":",$line);