art-web r522 - branches/art-hub/lib
- From: thos svn gnome org
- To: svn-commits-list gnome org
- Subject: art-web r522 - branches/art-hub/lib
- Date: Sun, 15 Jun 2008 22:03:41 +0000 (UTC)
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]