Skip to content

Commit 164d9dd

Browse files
committed
could be not an array so check it first
1 parent 1aee066 commit 164d9dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

onelogin-saml-sso/php/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
$requested_authncontext_values = get_option('onelogin_saml_advanced_requestedauthncontext', array());
50-
if (empty(array_filter($requested_authncontext_values))) {
50+
if ((is_array($requested_authncontext_values) && empty(array_filter($requested_authncontext_values))) || empty($requested_authncontext_values)) {
5151
$opt['requestedAuthnContext'] = false;
5252
} else {
5353
$opt['requestedAuthnContext'] = array();

0 commit comments

Comments
 (0)