Skip to content

Commit

Permalink
Fix variable customer
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnux committed Feb 23, 2024
1 parent c4fb994 commit db49d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/controllers/prepaid.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@
$in = ORM::for_table('tbl_transactions')->where('id', $id)->find_one();
$ui->assign('in', $in);
if (!empty($routes['3']) && $routes['3'] == 'send') {
$c = ORM::for_table('tbl_customers')->where('username', $d['username'])->find_one();
$c = ORM::for_table('tbl_customers')->where('username', $in['username'])->find_one();
if ($c) {
Message::sendInvoice($c, $d);
Message::sendInvoice($c, $in);
r2(U . 'prepaid/view/' . $id, 's', "Success send to customer");
}
r2(U . 'prepaid/view/' . $id, 'd', "Customer not found");
Expand Down

0 comments on commit db49d0f

Please sign in to comment.