PHP Warning: Undefined array key "battle"
This commit is contained in:
parent
c4aeb53f57
commit
0ab73fe5e2
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user