diff --git a/changelog.md b/changelog.md index 4618f174c..1728964ee 100755 --- a/changelog.md +++ b/changelog.md @@ -15,6 +15,7 @@ Improved the possibility to define the access level on Roles when creating new folder Added filter in Roles New: confirm deletion of attachment + #1964 Make email field in new LDAP user insertion null safe #1956 Warning appears on Category and API pages in admin mode #1947 Dependency & array update in install checks #1945 Cannot delete items diff --git a/sources/identify.php b/sources/identify.php index 2362e2d92..cf0d2112e 100644 --- a/sources/identify.php +++ b/sources/identify.php @@ -621,13 +621,13 @@ function identifyUser($sentData) array( 'login' => $username, 'pw' => $data['pw'], - 'email' => @$user_info_from_ad[0]['mail'][0], + 'email' => (isset($user_info_from_ad[0]['mail'][0]) === false) ? '' : $user_info_from_ad[0]['mail'][0], 'name' => $user_info_from_ad[0]['givenname'][0], 'lastname' => $user_info_from_ad[0]['sn'][0], 'admin' => '0', 'gestionnaire' => '0', 'can_manage_all_users' => '0', - 'personal_folder' => $SETTINGS['enable_pf_feature'] == "1" ? '1' : '0', + 'personal_folder' => $SETTINGS['enable_pf_feature'] === "1" ? '1' : '0', 'fonction_id' => '', 'groupes_interdits' => '', 'groupes_visibles' => '',