Browse Source

Remove E_NOTICEs with LDAP authentication - refs BT#11215

Angel Fernando Quiroz Campos 8 years ago
parent
commit
48326d35f4
2 changed files with 2 additions and 3 deletions
  1. 0 1
      main/auth/external_login/newUser.ldap.php
  2. 2 2
      main/inc/local.inc.php

+ 0 - 1
main/auth/external_login/newUser.ldap.php

@@ -65,5 +65,4 @@ if ($ldap_user !== false) {
 } else {
     $loginFailed = true;
     $uidReset = false;
-    unset($_user['user_id']);
 }

+ 2 - 2
main/inc/local.inc.php

@@ -555,11 +555,11 @@ if (!empty($_SESSION['_user']['user_id']) && !($login || $logout)) {
 
             if (isset($extAuthSource) && is_array($extAuthSource)) {
                 foreach ($extAuthSource as $thisAuthSource) {
-                    if (!empty($thisAuthSource['newUser']) && file_exists($thisAuthSource['newUser'])) {
+                    if (isset($thisAuthSource['newUser']) && file_exists($thisAuthSource['newUser'])) {
                         include_once($thisAuthSource['newUser']);
                     } else {
                         error_log(
-                            'Chamilo Authentication file '. $thisAuthSource['newUser'].
+                            'Chamilo Authentication external file' .
                             ' could not be found - this might prevent your system from using'.
                             ' the authentication process in the user creation process',
                             0