diff --git a/www/settings/post.php b/www/settings/post.php index 9419ac01..fc86b94c 100644 --- a/www/settings/post.php +++ b/www/settings/post.php @@ -9,10 +9,10 @@ if($colorScheme !== 'dark' && $colorScheme !== 'light' && $colorScheme !== 'auto if($colorScheme == 'auto'){ // Delete the cookie; auto is the default - setcookie('color-scheme', null, ['expires' => 0, 'path' => '/', 'secure' => true, 'httponly' => true]); + setcookie('color-scheme', null, 0, '/', '', true, true); } else{ - setcookie('color-scheme', $colorScheme, ['expires' => strtotime('+10 years'), 'path' => '/', 'secure' => true, 'httponly' => true]); + setcookie('color-scheme', $colorScheme, strtotime('+10 years'), '/', '', true, true); } // HTTP 303, See other