summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-04-03 20:34:27 +0000
committerRobin Millette <millette@controlyourself.ca>2009-04-03 20:34:27 +0000
commite1fec6db2fdc9c28878c8f87bd5b55d1b1e5e1fa (patch)
tree7adbe2c63bd04a63e6112e3fb320cc1a4fe12644
parent4d4e6ead9c98afeb43e5913b734eea9b5c783955 (diff)
Simplified code for empty public timeline.
-rw-r--r--actions/public.php3
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;
}