diff --git a/main/inc/lib/sortabletable.class.php b/main/inc/lib/sortabletable.class.php index a66b7932e8..0845304d6b 100755 --- a/main/inc/lib/sortabletable.class.php +++ b/main/inc/lib/sortabletable.class.php @@ -218,10 +218,10 @@ class SortableTable extends HTML_Table { $form = $this->get_page_select_form(); $nav = $this->get_navigation_html(); - //Only show pagination info when there are items to paginate - - if ($this->total_number_of_items > $this->default_items_per_page) { - $html = ''; + //Only show pagination info when there are items to paginate + + if ($this->get_total_number_of_items() > $this->default_items_per_page) { + $html = '
'; $html .= ''; $html .= ''; - $html .= ''; + + if ($this->get_total_number_of_items() > $this->default_items_per_page) { + $html .= ''; + } + $html .= ''; $html .= '
'; $html .= $form; @@ -272,9 +272,13 @@ class SortableTable extends HTML_Table { $html .= $form; } $html .= ''; - $html .= $nav; - $html .= ''; + $html .= $nav; + $html .= '
'; if (count($this->form_actions) > 0) {