This commit is contained in:
Igor Barkov [iwork] 2018-11-01 17:35:12 +02:00
parent c8bf20fea0
commit 5e6fe346e6

View File

@ -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;