static definition of User::getByNickname

This commit is contained in:
Mikael Nordfeldth 2015-07-10 12:59:19 +02:00
parent 50c297bcbe
commit f8877e015b
1 changed files with 1 additions and 1 deletions

View File

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