PHP Deprecated: setcookie(): Passing null to parameter #2.

This commit is contained in:
2023-08-23 14:18:07 +03:00
parent d1663a34cf
commit c4aeb53f57
3 changed files with 335 additions and 254 deletions
+1 -1
View File
@@ -603,7 +603,7 @@ class User
}
if (!isset ($_COOKIE['btl']) || $this->info['battle'] != $_COOKIE['btl']) {
setcookie('btl', $this->info['battle'], time() + 86400);
setcookie('btl', $this->info['battle'] ?? '', time() + 86400);
}
if (isset($this->info['id'])) {