Skip to content

Commit

Permalink
Fixed issue: (Debug Mode) PHP notice when entering a non existent use…
Browse files Browse the repository at this point in the history
…r name on login.
  • Loading branch information
LouisGac committed Nov 17, 2016
1 parent eb806fc commit 552d846
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/core/plugins/Authdb/Authdb.php
Expand Up @@ -131,7 +131,10 @@ public function newUserSession()

if ($user == null){
$user = $this->api->getUserByEmail($username);
$this->setUsername($user->users_name);

if (is_object($user)){
$this->setUsername($user->users_name);
}
}

if ($user !== null && $user->uid != 1 && !Permission::model()->hasGlobalPermission('auth_db','read',$user->uid))
Expand Down

0 comments on commit 552d846

Please sign in to comment.