static definition of User::getByNickname

This commit is contained in:
Mikael Nordfeldth 2015-07-10 12:59:19 +02:00
parent 50c297bcbe
commit f8877e015b

View File

@ -147,7 +147,7 @@ class User extends Managed_DataObject
return $this->getProfile()->getNickname(); return $this->getProfile()->getNickname();
} }
public function getByNickname($nickname) static function getByNickname($nickname)
{ {
$user = User::getKV('nickname', $nickname); $user = User::getKV('nickname', $nickname);
if (!$user instanceof User) { if (!$user instanceof User) {