mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
LSauthMethod :: authenticate(): fix PHP warning
This commit is contained in:
parent
f223827157
commit
845fdbb4d8
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class LSauthMethod extends LSlog_staticLoggerClass {
|
|||
*/
|
||||
public function authenticate() {
|
||||
$authobjects = LSauth :: username2LSobjects($this -> authData['username']);
|
||||
if (!$authobjects) {
|
||||
if (!$authobjects || !is_array($authobjects)) {
|
||||
LSerror :: addErrorCode('LSauth_01');
|
||||
self :: log_debug("No user found for provided username '".$this -> authData['username']."'");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue