[limb-svn] r6730 - 3.x/trunk/limb/wact/src/components/pager

svn at limb-project.com svn at limb-project.com
Wed Jan 23 15:14:25 MSK 2008


Author: serega
Date: 2008-01-23 15:14:25 +0300 (Wed, 23 Jan 2008)
New Revision: 6730
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6730

Modified:
   3.x/trunk/limb/wact/src/components/pager/WactPagerComponent.class.php
Log:
-- added type casting to WactPagerComponent :: getDisplayedPageBeginItem()

Modified: 3.x/trunk/limb/wact/src/components/pager/WactPagerComponent.class.php
===================================================================
--- 3.x/trunk/limb/wact/src/components/pager/WactPagerComponent.class.php	2008-01-23 12:10:37 UTC (rev 6729)
+++ 3.x/trunk/limb/wact/src/components/pager/WactPagerComponent.class.php	2008-01-23 12:14:25 UTC (rev 6730)
@@ -136,7 +136,7 @@
     if($this->total_items < 1)
       return 0;
 
-    return $this->items_per_page * ($this->displayed_page - 1) + 1;
+    return (int)$this->items_per_page * ($this->displayed_page - 1) + 1;
   }
 
   function getDisplayedPageEndItem()



More information about the limb-svn mailing list