PHP Classes

Found a kind of bug

Recommend this page to a friend!

      CSS Pagination  >  All threads  >  Found a kind of bug  >  (Un) Subscribe thread alerts  
Subject:Found a kind of bug
Summary:about the enclosing <div> tags...
Messages:1
Author:Ivo
Date:2010-04-10 15:49:29
 

  1. Found a kind of bug   Reply   Report abuse  
Picture of Ivo 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){