PHP Deprecated: setcookie(): Passing null to parameter #2.
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user