Remove E_NOTICEs with LDAP authentication - refs BT#11215

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent b2efe1ba55
commit 48326d35f4
  1. 1
      main/auth/external_login/newUser.ldap.php
  2. 4
      main/inc/local.inc.php

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

@ -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

Loading…
Cancel
Save