]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
static definition of User::getByNickname
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 10 Jul 2015 10:59:19 +0000 (12:59 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 10 Jul 2015 10:59:19 +0000 (12:59 +0200)
classes/User.php

index 72510f162ca8deb1fde12378423b41a63d98716d..ec6ceccf1244c79e6c48f608b4b274488274dc4a 100644 (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) {