diff --git a/main.php b/main.php index 5fcb084..974961e 100644 --- a/main.php +++ b/main.php @@ -25,7 +25,7 @@ if (!empty($user['battle'])) { } //БС -if ($user['in_tower'] == 1) { +if ( isset($user['in_tower']) && $user['in_tower'] == 1) { header('Location: towerin.php'); die(); }