summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-09 20:12:08 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-09 20:12:08 +0300
commit1e5d5a80039e0a89380d7fe4fde89b6fed3c0b9a (patch)
tree527fe5d55a719bb60f4c8f9c9eb343026781e92c /lib
parent39500328f46917be51bcc74fd52143ba7f9699ca (diff)
admin: fix deprecated setcookie() call
Diffstat (limited to 'lib')
-rw-r--r--lib/admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/admin.php b/lib/admin.php
index 8b36b36..afe3a9e 100644
--- a/lib/admin.php
+++ b/lib/admin.php
@@ -41,7 +41,7 @@ class admin {
public static function unsetCookie(): void {
global $config;
- setcookie(self::COOKIE_NAME, null, -1, '/', $config['cookie_host']);
+ setcookie(self::COOKIE_NAME, '', -1, '/', $config['cookie_host']);
}
public static function logAuth(): void {