We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 98b3f5ea authored by Evan Prodromou's avatar Evan Prodromou

no extra nulls on home page

parent aa7b6447
......@@ -59,9 +59,7 @@ class AllAction extends ProfileAction
$stream = new ThreadingInboxNoticeStream($this->user, Profile::current());
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
NOTICES_PER_PAGE + 1,
null,
null);
NOTICES_PER_PAGE + 1);
if ($this->page > 1 && $this->notice->N == 0) {
// TRANS: Server error when page not found (404).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment