From 5e6fe346e6d00869f759a85c9dcd649dce71552c Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Thu, 1 Nov 2018 17:35:12 +0200 Subject: [PATCH] Fix --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 167d0b9..c5615f1 100644 --- a/functions.php +++ b/functions.php @@ -2264,7 +2264,7 @@ function ref_drop() } } } - if ($dd = db::c()->query("SELECT `i`.`id` FROM `users` AS `u`, `inventory` AS `i` + if ($dd = db::c()->query('SELECT `i`.`id` FROM `users` AS `u`, `inventory` AS `i` WHERE `i`.`needident` = 0 AND `i`.`id` = ?i AND @@ -2277,7 +2277,7 @@ function ref_drop() `u`.`intel` >= `i`.`nintel` AND `u`.`mudra` >= `i`.`nmudra` AND `u`.`level` >= `i`.`nlevel` AND - (?i OR (?i = `i`.`nalign`) or (`i`.`nalign` = 0)) AND + ("?s" OR (?i = `i`.`nalign`) or (`i`.`nalign` = 0)) AND `u`.`noj` >= `i`.`nnoj` AND `u`.`topor` >= `i`.`ntopor` AND `u`.`dubina` >= `i`.`ndubina` AND @@ -2290,7 +2290,7 @@ function ref_drop() `u`.`mgray` >= `i`.`ngray` AND `u`.`mdark` >= `i`.`ndark` AND `i`.`setsale` = 0 AND - `u`.`id` = ?i",$id,$user['id'],$al,$user['align'],$user['id'])) { + `u`.`id` = ?i',$id,$user['id'],$al,$user['align'],$user['id'])) { $dd = $dd->fetch_row(); if ($dd[0] > 0) { return true;