X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fallrss.php;h=e49ac55401435d9cd0d4d7e262e0eaac9e58adc2;hb=74291968c4b4f1fca29cb79caad695a1e2360734;hp=088d04037f3acdb221dffd3efed697506f717d78;hpb=9515303b14288041576c50c1729f874c2e17191f;p=quix0rs-gnu-social.git diff --git a/actions/allrss.php b/actions/allrss.php index 088d04037f..e49ac55401 100644 --- a/actions/allrss.php +++ b/actions/allrss.php @@ -43,7 +43,7 @@ class AllrssAction extends Rss10Action { $user = $this->user; - list($cnt, $notice) = $user->noticesWithFriends(0, $limit); + $notice = $user->noticesWithFriends(0, $limit); while ($notice->fetch()) { $notices[] = clone($notice); @@ -68,6 +68,9 @@ class AllrssAction extends Rss10Action { function get_image() { $user = $this->user; $profile = $user->getProfile(); + if (!$profile) { + return NULL; + } $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); return ($avatar) ? $avatar->url : NULL; }