Merge pull request #476 from marc1706/ticket/475

[ticket/475] Show "No announcements" if no announcements present
This commit is contained in:
Marc Alexander
2015-02-15 10:31:47 +01:00

View File

@@ -154,7 +154,7 @@ class announcements extends module_base
); );
// Any announcements present? If not terminate it here. // Any announcements present? If not terminate it here.
if (sizeof($fetch_news) == 0) if (sizeof($fetch_news) < 3)
{ {
$this->template->assign_block_vars('announcements', $announcements_row); $this->template->assign_block_vars('announcements', $announcements_row);