Хороним идиотские ошибки в проверках и инклюдах.

This commit is contained in:
Igor Barkov (iwork)
2020-09-30 15:30:00 +03:00
parent 2e167b79dd
commit 95fa17237a
112 changed files with 223 additions and 119 deletions

View File

@@ -13,10 +13,11 @@ if ($user['battle'] > 0) {
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = '{$target}' AND `needident` = 1 LIMIT 1;"));
if (mysql_query("UPDATE `inventory` SET `needident` = 0 WHERE `id` = {$dress['id']} LIMIT 1;")) {