Commit 455c2310 authored by Brett Wilkins's avatar Brett Wilkins

MaharaAuthPlugin: fixing initUser function

parent 601a6553
......@@ -263,11 +263,11 @@ class MaharaAuthPlugin extends AuthPlugin {
$db = $this->getDatabase();
$sql = "SELECT * FROM ".$this->prefix."usr where LOWER(username) = '".$username."'";
$res = $db->query($sql);
$val = $db->fetchRow($res);
$val = $db->fetchObject($res);
$user->setRealName($this->firstname.' '.$this->lastname);
$user->setRealName($val->firstname.' '.$val->lastname);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment