From 1e5d5a80039e0a89380d7fe4fde89b6fed3c0b9a Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 9 Jul 2022 20:12:08 +0300 Subject: admin: fix deprecated setcookie() call --- lib/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3