diff --git a/modules/announcements.php b/modules/announcements.php index 0a44a1bc..5bf1049c 100644 --- a/modules/announcements.php +++ b/modules/announcements.php @@ -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)) ); diff --git a/modules/news.php b/modules/news.php index 72668d93..daa54a29 100644 --- a/modules/news.php +++ b/modules/news.php @@ -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)) );