From c158d4996558dc743d9ea980d8dd7392d63441c2 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 16 Aug 2024 09:17:46 +0700 Subject: [PATCH] fix Binary in the plan.php --- system/controllers/plan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/controllers/plan.php b/system/controllers/plan.php index d898d16e..59505276 100644 --- a/system/controllers/plan.php +++ b/system/controllers/plan.php @@ -758,7 +758,7 @@ switch ($action) { } $code = Text::alphanumeric(_post('code'), "-_.,"); $user = ORM::for_table('tbl_customers')->where('id', _post('id_customer'))->find_one(); - $v1 = ORM::for_table('tbl_voucher')->whereRaw("BINARY `code` = '?'", [$code])->where('status', 0)->find_one(); + $v1 = ORM::for_table('tbl_voucher')->whereRaw("BINARY `code` = '$code'")->where('status', 0)->find_one(); run_hook('refill_customer'); #HOOK if ($v1) {