Internal: Add additional check on alternative authentication source file to avoid logging useless warnings

pull/4990/head
Yannick Warnier 2 years ago
parent 7ba8416efa
commit 12655c3ff7
  1. 4
      main/inc/local.inc.php

@ -852,7 +852,8 @@ if (!empty($_SESSION['_user']['user_id']) && !($login || $logout)) {
if (!empty($thisAuthSource['login']) && file_exists($thisAuthSource['login'])) {
include_once $thisAuthSource['login'];
}
if (isset($thisAuthSource['newUser']) && file_exists($thisAuthSource['newUser'])) {
if (isset($thisAuthSource['newUser'])) {
if (file_exists($thisAuthSource['newUser'])) {
include_once $thisAuthSource['newUser'];
} else {
error_log(
@ -863,6 +864,7 @@ if (!empty($_SESSION['_user']['user_id']) && !($login || $logout)) {
);
}
}
}
} //end if is_array($extAuthSource)
$checkUserInfo = Session::read('_user');

Loading…
Cancel
Save