From bdff1d5fbe24e0cda4ed8110c27236e48f532b74 Mon Sep 17 00:00:00 2001 From: neen Date: Mon, 27 Apr 2009 19:42:27 -0700 Subject: [PATCH] Fixed a bug in the voip and module modules. --- modules/module/module.inc.php | 2 +- modules/voip/voip.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/module/module.inc.php b/modules/module/module.inc.php index ace1a4ff..36c45630 100644 --- a/modules/module/module.inc.php +++ b/modules/module/module.inc.php @@ -685,7 +685,7 @@ class module if(ereg('[(]',$t_s)) { - $ts = explode('[(]',$t_s); + $ts = explode('(',$t_s); $type = $ts[0]; $size = ereg_replace('[)]', '', $ts[1]); $flds[] = Array($field, $type, $size); diff --git a/modules/voip/voip.inc.php b/modules/voip/voip.inc.php index 799c3191..dcbd9b58 100644 --- a/modules/voip/voip.inc.php +++ b/modules/voip/voip.inc.php @@ -1727,7 +1727,7 @@ class voip while ($rs1 && !$rs1->EOF) { $calltype = 0; - if(strlen($this->voip_intrastate)) + if(is_array($this->voip_intrastate)) $calltype = $this->isIntrastateCall($rs1->fields['src'], $rs1->fields['dst']); $slotMatched = 0; $unit = 0; $quan = 0; $amount = 0; $isInbound = $this->in_did_array($rs1->fields['dst'], $dids);