voip_prepaid::lowBalance fix, take 3.

This commit is contained in:
abacab 2008-12-30 10:31:18 -05:00
parent b33a038019
commit 2c89a97894

View File

@ -83,8 +83,10 @@ class voip_prepaid
{
include_once(PATH_MODULES.'email_template/email_template.inc.php');
if (defined $this->lowBalance)
{
// do not run task if lowBalance is not set
if ($this->lowBalance == false)
return;
// delete expired pins?
// $delrs = & $db->Execute(sqlDelete($db,"voip_prepaid"," date_expire <> 0 and date_expire is not null and date_expire > ".time()));
@ -105,7 +107,6 @@ class voip_prepaid
}
}
}
}
/** provision pin */