Skip to content
Snippets Groups Projects
Commit d83937a3 authored by Tim Steiner's avatar Tim Steiner
Browse files

New user login should work now... again...

parent 72e4aed9
Branches
No related tags found
No related merge requests found
...@@ -35,6 +35,9 @@ class People extends Nmc_Db_Table ...@@ -35,6 +35,9 @@ class People extends Nmc_Db_Table
$where = $db->quoteInto('userName=?', $userName); $where = $db->quoteInto('userName=?', $userName);
$user = Users::getInstance()->fetchRow($where); $user = Users::getInstance()->fetchRow($where);
if (!$user) {
return null;
}
$userKey = $user->getPrimaryKey(); $userKey = $user->getPrimaryKey();
$person = $this->findOne($userKey); $person = $this->findOne($userKey);
return $person; return $person;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment