aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2013-04-28 00:18:02 -0700
committerJames Bottomley <JBottomley@Parallels.com>2013-04-28 00:18:02 -0700
commitc1468982ca9a1933c34760cc693f4887c8f8cce1 (patch)
tree2960f84d52330978ed2e6288a79343b3bf7872bf
parenta95e460c9316c0be6b86949c00c74ac05c215098 (diff)
downloadasterisk-aastra-c1468982ca9a1933c34760cc693f4887c8f8cce1.tar.gz
AastraAsterisk: fix database_show not to include the number of elements
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--include/AastraAsterisk.class.php2
1 files changed, 2 insertions, 0 deletions
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 @@ class AGI_AsteriskManager
$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);