We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb591d7 commit 5ead1c0Copy full SHA for 5ead1c0
model/user.php
@@ -156,7 +156,11 @@ public function get_details_from_ldap() {
156
$this->auth_realm = 'LDAP';
157
$this->uid = $ldapuser[strtolower($config['ldap']['user_id'])];
158
$this->name = $ldapuser[strtolower($config['ldap']['user_name'])];
159
- $this->email = $ldapuser[strtolower($config['ldap']['user_email'])];
+ if (isset($ldapuser[strtolower($config['ldap']['user_email'])])) {
160
+ $this->email = $ldapuser[strtolower($config['ldap']['user_email'])];
161
+ } else {
162
+ $this->email = '';
163
+ }
164
if(isset($config['ldap']['user_active'])) {
165
$this->active = 0;
166
if(isset($config['ldap']['user_active_true'])) {
0 commit comments