voip_prepaid::lowBalance fix, take 3.
This commit is contained in:
parent
b33a038019
commit
2c89a97894
@ -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 */
|
||||
|
Reference in New Issue
Block a user