[ticket/382] Check if pagination is not empty
B3P-382
This commit is contained in:
@@ -409,7 +409,7 @@ class announcements extends module_base
|
||||
if ($this->config['board3_number_of_announcements_' . $module_id] <> 0 && $this->config['board3_announcements_archive_' . $module_id])
|
||||
{
|
||||
$this->template->assign_vars(array(
|
||||
'AP_PAGINATION' => $pagination,
|
||||
'AP_PAGINATION' => (!empty($pagination)) ? $pagination : '',
|
||||
'TOTAL_ANNOUNCEMENTS' => ($total_announcements == 1) ? $this->user->lang['VIEW_LATEST_ANNOUNCEMENT'] : sprintf($this->user->lang['VIEW_LATEST_ANNOUNCEMENTS'], $total_announcements),
|
||||
'AP_PAGE_NUMBER' => $this->pagination->on_page($total_announcements, $this->config['board3_number_of_announcements_' . $module_id], $start))
|
||||
);
|
||||
|
||||
@@ -390,7 +390,7 @@ class news extends module_base
|
||||
if ($this->config['board3_number_of_news_' . $module_id] <> 0 && $this->config['board3_news_archive_' . $module_id])
|
||||
{
|
||||
$this->template->assign_vars(array(
|
||||
'NP_PAGINATION' => $pagination,
|
||||
'NP_PAGINATION' => (!empty($pagination)) ? $pagination : '',
|
||||
'TOTAL_NEWS' => ($total_news == 1) ? $this->user->lang['VIEW_FORUM_TOPIC'] : $this->user->lang('VIEW_FORUM_TOPICS', $total_news),
|
||||
'NP_PAGE_NUMBER' => $this->pagination->on_page($total_news, $this->config['board3_number_of_news_' . $module_id], $start))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user