check for profile record
This commit is contained in:
parent
8cc19b90ee
commit
00c358956f
@ -73,6 +73,11 @@ class NoticeSection extends Section
|
|||||||
function showNotice($notice)
|
function showNotice($notice)
|
||||||
{
|
{
|
||||||
$profile = $notice->getProfile();
|
$profile = $notice->getProfile();
|
||||||
|
if (empty($profile)) {
|
||||||
|
common_log(LOG_WARNING, sprintf("Notice %d has no profile",
|
||||||
|
$notice->id));
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->out->elementStart('li', 'hentry notice');
|
$this->out->elementStart('li', 'hentry notice');
|
||||||
$this->out->elementStart('div', 'entry-title');
|
$this->out->elementStart('div', 'entry-title');
|
||||||
$avatar = $profile->getAvatar(AVATAR_MINI_SIZE);
|
$avatar = $profile->getAvatar(AVATAR_MINI_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user