From: Mikael Nordfeldth Date: Fri, 10 Jul 2015 10:59:19 +0000 (+0200) Subject: static definition of User::getByNickname X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8877e015b1c0a81b34de77642947a57e7507f73;p=quix0rs-gnu-social.git static definition of User::getByNickname --- diff --git a/classes/User.php b/classes/User.php index 72510f162c..ec6ceccf12 100644 --- a/classes/User.php +++ b/classes/User.php @@ -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) {