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
@@ -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) {