mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-31 15:19:36 +02:00
Update cron.php
voucher expired tidak terhapus dari mikrotik sebab tidak menemukan data pada tabel customer $c untuk di eksekusi ke device.php
This commit is contained in:
parent
ad862640cc
commit
0428d9620e
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ foreach ($d as $ds) {
|
|||
$u = ORM::for_table('tbl_user_recharges')->where('id', $ds['id'])->find_one();
|
||||
$c = ORM::for_table('tbl_customers')->where('id', $ds['customer_id'])->find_one();
|
||||
$p = ORM::for_table('tbl_plans')->where('id', $u['plan_id'])->find_one();
|
||||
if (empty($c)) {
|
||||
$c = $u;
|
||||
}
|
||||
$dvc = Package::getDevice($p);
|
||||
if ($_app_stage != 'demo') {
|
||||
if (file_exists($dvc)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue