Fixed a bug in the voip and module modules.

This commit is contained in:
neen 2009-04-27 19:42:27 -07:00
parent 068a5a2971
commit 1b2d4fc914
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);