LSauthMethod :: authenticate(): fix PHP warning

This commit is contained in:
Benjamin Renard 2020-08-19 15:11:49 +02:00
parent f223827157
commit 845fdbb4d8

View file

@ -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']."'");
}