Skip to content
Snippets Groups Projects
Verified Commit df69edbb authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

fix: handle empty auth result as null

parent bbacb576
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ class PIResponse
}
// Check that the authentication status is one of the allowed ones
$r = $map['result']['authentication'] ?: null;
$r = (!empty($map['result']['authentication'])) ? $map['result']['authentication'] : null;
if (in_array(
$r,
[AuthenticationStatus::CHALLENGE, AuthenticationStatus::ACCEPT, AuthenticationStatus::REJECT],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment