art-web r522 - branches/art-hub/lib



Author: thos
Date: Sun Jun 15 22:03:41 2008
New Revision: 522
URL: http://svn.gnome.org/viewvc/art-web?rev=522&view=rev

Log:
* Fix a bug in the pagination class


Modified:
   branches/art-hub/lib/pagination.php

Modified: branches/art-hub/lib/pagination.php
==============================================================================
--- branches/art-hub/lib/pagination.php	(original)
+++ branches/art-hub/lib/pagination.php	Sun Jun 15 22:03:41 2008
@@ -37,7 +37,7 @@
     }
 
     $first = max (1, $cur_page - $context / 2);
-    $last = min ($first + $context, $this->total / $this->limit);
+    $last = min ($first + $context, ceil ($this->total / $this->limit));
 
     if ($last - $first < $context)
       $first = max (1, $last - $context);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]