PHP Deprecated: setcookie(): Passing null to parameter #2.
This commit is contained in:
@@ -265,7 +265,7 @@ if (!isset($u['id'])) {
|
||||
);
|
||||
}
|
||||
|
||||
setcookie('login', $_POST['login'], time() + 60 * 60 * 24 * 7, '', Config::get('host'));
|
||||
setcookie('login', $_POST['login'] ?? '', time() + 60 * 60 * 24 * 7, '', Config::get('host'));
|
||||
setcookie('ip', IP, time() + 60 * 60 * 24 * 150, '');
|
||||
|
||||
if ($u['online'] < time() - 520) {
|
||||
|
||||
Reference in New Issue
Block a user