
Ivo - 2010-04-10 15:49:29
Hello,
First, I want to thank you for this great script.
While testing it, I encountered the following bug, when the page is only 1 and there aren't enough results to create a second page.
I've queryed a table that has only 2 entires, and specified $rowsperpage = 25;
The output was the following:
<body>
<div class="pagination">id: 1 - 1270846800<br />id: 2 - 1270760400<br /><div class="pagination">
</body>
As you can see, when there is no need for page links, the DIV is still shown and even not closed properly.
I've fixed the problem by moving the
$pagination .= "<div class=\"pagination\"";
... stuff right AFTER
if ($this->getLastPage() > 1){