Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
removed Array check
Browse files Browse the repository at this point in the history
removed Array check, not needed after
if (!isset($attributes[$claim][0])) {
  • Loading branch information
zenril committed Jul 22, 2018
1 parent e80bab2 commit 8fda3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/control/SAMLController.php
Expand Up @@ -90,7 +90,7 @@ public function acs()
continue;
}

if(is_array($attributes[$claim]) && count($attributes[$claim]) > 1) {
if(count($attributes[$claim]) > 1) {
$member->$field = $attributes[$claim];
} else {
$member->$field = $attributes[$claim][0];
Expand Down

0 comments on commit 8fda3a0

Please sign in to comment.