Cleanup handling of Utils::GetCookie()

This commit is contained in:
the-djmaze 2022-11-09 08:38:46 +01:00
parent 9db813b6ee
commit 697250e361
4 changed files with 8 additions and 7 deletions

View file

@ -416,7 +416,7 @@ trait UserAuth
public function GetSpecLogoutCustomMgsWithDeletion(): string
{
$sResult = Utils::GetCookie(self::AUTH_SPEC_LOGOUT_CUSTOM_MSG_KEY, '');
$sResult = Utils::GetCookie(self::AUTH_SPEC_LOGOUT_CUSTOM_MSG_KEY) ?: '';
if (\strlen($sResult)) {
Utils::ClearCookie(self::AUTH_SPEC_LOGOUT_CUSTOM_MSG_KEY);
}