Simplified code for empty public timeline.

This commit is contained in:
Robin Millette 2009-04-03 20:34:27 +00:00
parent 4d4e6ead9c
commit e1fec6db2f

View File

@ -168,14 +168,13 @@ class PublicAction extends Action
function showPageNotice()
{
$notice = Notice::publicStream(0, 1);
$notice = new Notice;
if (!$notice) {
$this->serverError(_('Could not retrieve public stream.'));
return;
}
// no notices in the public stream, let's get out of here
if ($notice->count()) {
return;
}