Хороним идиотские ошибки в проверках и инклюдах.
This commit is contained in:
@@ -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;")) {
|
||||
|
||||
Reference in New Issue
Block a user