PHP Warning: Undefined array key "battle"
This commit is contained in:
@@ -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);
|
setcookie('btl', $this->info['battle'] ?? '', time() + 86400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user