diff --git a/modules/aselect/www/credentials.php b/modules/aselect/www/credentials.php index 2a17c4286777777881a5f8f1abbac0d286949b27..09b4b065758fa626cca7855d747c44199d65d062 100644 --- a/modules/aselect/www/credentials.php +++ b/modules/aselect/www/credentials.php @@ -49,8 +49,7 @@ try { if (array_key_exists('attributes', $creds)) { $state['Attributes'] = $creds['attributes']; } else { - $res = $creds['res']; - $state['Attributes'] = array('uid' => array($res['uid']), 'organization' => array($res['organization'])); + $state['Attributes'] = array('uid' => array($creds['uid']), 'organization' => array($creds['organization'])); } } catch (Exception $e) { SimpleSAML_Auth_State::throwException($state, $e);