mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-02 17:24:41 +02:00
code
to code
This commit is contained in:
parent
70bcff7679
commit
064e4c80ed
5 changed files with 55 additions and 7 deletions
|
@ -111,7 +111,7 @@ switch ($do) {
|
|||
_alert(Lang::T('Internet Plan Expired'), 'danger', "login");
|
||||
}
|
||||
} else {
|
||||
$v = ORM::for_table('tbl_voucher')->whereRaw("BINARY `code` = '$voucher'")->find_one();
|
||||
$v = ORM::for_table('tbl_voucher')->whereRaw("BINARY code = '$voucher'")->find_one();
|
||||
if (!$v) {
|
||||
_alert(Lang::T('Voucher invalid'), 'danger', "login");
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ switch ($do) {
|
|||
} else {
|
||||
$voucher = Text::alphanumeric(_post('voucher'), "-_.,");
|
||||
$username = _post('username');
|
||||
$v1 = ORM::for_table('tbl_voucher')->whereRaw("BINARY `code` = '$voucher'")->find_one();
|
||||
$v1 = ORM::for_table('tbl_voucher')->whereRaw("BINARY code = '$voucher'")->find_one();
|
||||
if ($v1) {
|
||||
// voucher exists, check customer exists or not
|
||||
$user = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue