mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 02:04:53 +02:00
code
to code
This commit is contained in:
parent
70bcff7679
commit
064e4c80ed
5 changed files with 55 additions and 7 deletions
|
@ -22,7 +22,7 @@ switch ($action) {
|
|||
|
||||
case 'activation-post':
|
||||
$code = alphanumeric(_post('code'), "-_.,");
|
||||
$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('customer_activate_voucher'); #HOOK
|
||||
if ($v1) {
|
||||
if (Package::rechargeUser($user['id'], $v1['routers'], $v1['id_plan'], "Voucher", $code)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue