If lowBalance is not set, then do not run the void_prepaid:task function.
This commit is contained in:
parent
2aef892944
commit
d295494489
@ -78,6 +78,8 @@ class voip_prepaid
|
|||||||
{
|
{
|
||||||
include_once(PATH_MODULES.'email_template/email_template.inc.php');
|
include_once(PATH_MODULES.'email_template/email_template.inc.php');
|
||||||
|
|
||||||
|
if ($this->lowBalance)
|
||||||
|
{
|
||||||
// delete expired pins?
|
// delete expired pins?
|
||||||
// $delrs = & $db->Execute(sqlDelete($db,"voip_prepaid"," date_expire <> 0 and date_expire is not null and date_expire > ".time()));
|
// $delrs = & $db->Execute(sqlDelete($db,"voip_prepaid"," date_expire <> 0 and date_expire is not null and date_expire > ".time()));
|
||||||
|
|
||||||
@ -98,6 +100,7 @@ class voip_prepaid
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/** provision pin */
|
/** provision pin */
|
||||||
|
Reference in New Issue
Block a user