Skip to content

Commit

Permalink
Issue #2420087 by DMaester: Fatal error in all PHP versions prior to 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DMaester authored and Balazs Dianiska committed Feb 9, 2015
1 parent 68fa312 commit f2d8bd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simplesamlphp_auth.module
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ function simplesamlphp_auth_init() {
$allowed_default_login_roles = variable_get('simplesamlphp_auth_allowdefaultloginroles', array());

// Check if user is allowed default login.
$user_allowed_default_login_roles = array_intersect_key($user->roles, $allowed_default_login_roles);
if (variable_get('simplesamlphp_auth_allowdefaultlogin', TRUE) &&
(in_array($user->uid, $allowed_uids) || !empty(array_intersect_key($user->roles, $allowed_default_login_roles)))) {
(in_array($user->uid, $allowed_uids) || !empty($user_allowed_default_login_roles))) {
$user_allowed_default_login = TRUE;
}

Expand Down

0 comments on commit f2d8bd4

Please sign in to comment.