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

svn at limb-project.com svn at limb-project.com
Wed Jan 23 16:48:48 MSK 2008


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

Modified:
   3.x/trunk/limb/wact/src/components/pager/WactPagerComponent.class.php
Log:
-- added type casting for variable from GET WactPagerComponent

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 13:47:46 UTC (rev 6733)
+++ 3.x/trunk/limb/wact/src/components/pager/WactPagerComponent.class.php	2008-01-23 13:48:48 UTC (rev 6734)
@@ -186,7 +186,7 @@
     if (is_integer($pos))
         $this->base_url = substr($this->base_url, 0, $pos);
 
-    $this->displayed_page = @$_GET[$this->getPagerId()];
+    $this->displayed_page = (int)@$_GET[$this->getPagerId()];
     if (empty($this->displayed_page)) {
         $this->displayed_page = 1;
     }



More information about the limb-svn mailing list