Fix notice caused by voip_prepaid:task when tables are not installed.

This commit is contained in:
abacab 2008-12-29 20:43:41 -05:00
parent a38c7a100e
commit 2aef892944

View File

@ -27,6 +27,8 @@ class voip_prepaid
$db =& DB(); $db =& DB();
$rs = $db->Execute(sqlSelect($db,"voip","prepaid_low_balance","id=::".DEFAULT_SITE."::")); $rs = $db->Execute(sqlSelect($db,"voip","prepaid_low_balance","id=::".DEFAULT_SITE."::"));
if ($rs && $rs->RecordCount() > 0)
{
# e-mail user's once when balance reaches this amount: # e-mail user's once when balance reaches this amount:
$this->lowBalance = $rs->fields[0]; $this->lowBalance = $rs->fields[0];
$this->pinLenth = 10; // up to 10 $this->pinLenth = 10; // up to 10
@ -49,6 +51,7 @@ class voip_prepaid
$this->order_by = $construct["construct"]["order_by"]; $this->order_by = $construct["construct"]["order_by"];
$this->limit = $construct["construct"]["limit"]; $this->limit = $construct["construct"]["limit"];
} }
}
/** generate a new pin */ /** generate a new pin */
function genPin() function genPin()