diff --git a/_incl_data/class/User.php b/_incl_data/class/User.php index 0ecf9362..ec8afd12 100644 --- a/_incl_data/class/User.php +++ b/_incl_data/class/User.php @@ -602,7 +602,7 @@ class User } } - if (!isset ($_COOKIE['btl']) || $this->info['battle'] != $_COOKIE['btl']) { + if (!isset ($_COOKIE['btl'], $this->info['battle']) || $this->info['battle'] != $_COOKIE['btl']) { setcookie('btl', $this->info['battle'] ?? '', time() + 86400); }