diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-04-03 20:34:27 +0000 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-04-03 20:34:27 +0000 |
commit | e1fec6db2fdc9c28878c8f87bd5b55d1b1e5e1fa (patch) | |
tree | 7adbe2c63bd04a63e6112e3fb320cc1a4fe12644 /actions/public.php | |
parent | 4d4e6ead9c98afeb43e5913b734eea9b5c783955 (diff) |
Simplified code for empty public timeline.
Diffstat (limited to 'actions/public.php')
-rw-r--r-- | actions/public.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actions/public.php b/actions/public.php index fca90488f..5a2720a9a 100644 --- a/actions/public.php +++ b/actions/public.php @@ -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; } |