X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshowfavorites.php;h=0e028416da2cfa1314237403bf0b44bdcb576b4d;hb=b3bf036975593db27c6e7e653f18160d086f7b2d;hp=64fa14bc82b367132a78b0add5647dfd0f555a9d;hpb=513c54fa89085fde783a73c298d61576f834b131;p=quix0rs-gnu-social.git diff --git a/actions/showfavorites.php b/actions/showfavorites.php index 64fa14bc82..0e028416da 100644 --- a/actions/showfavorites.php +++ b/actions/showfavorites.php @@ -99,12 +99,11 @@ class ShowfavoritesAction extends Action $nickname = common_canonical_nickname($this->arg('nickname')); - $this->user = User::staticGet('nickname', $nickname); + $this->user = User::getKV('nickname', $nickname); if (!$this->user) { // TRANS: Client error displayed when trying to display favourite notices for a non-existing user. $this->clientError(_('No such user.')); - return false; } $this->page = $this->trimmed('page'); @@ -132,7 +131,6 @@ class ShowfavoritesAction extends Action if (empty($this->notice)) { // TRANS: Server error displayed when favourite notices could not be retrieved from the database. $this->serverError(_('Could not retrieve favorite notices.')); - return; } if($this->page > 1 && $this->notice->N == 0){