[limb-svn] r6733 - 3.x/trunk/limb/macro/src/tags/pager

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


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

Modified:
   3.x/trunk/limb/macro/src/tags/pager/lmbMacroPagerHelper.class.php
Log:
-- added type casting for variable from GET lmbMacroPagerHelper

Modified: 3.x/trunk/limb/macro/src/tags/pager/lmbMacroPagerHelper.class.php
===================================================================
--- 3.x/trunk/limb/macro/src/tags/pager/lmbMacroPagerHelper.class.php	2008-01-23 12:21:13 UTC (rev 6732)
+++ 3.x/trunk/limb/macro/src/tags/pager/lmbMacroPagerHelper.class.php	2008-01-23 13:47:46 UTC (rev 6733)
@@ -175,7 +175,7 @@
   protected function _initCurrentPage()
   {
     if(!$this->current_page && isset($_GET[$this->id]))
-      $this->current_page = $_GET[$this->id];
+      $this->current_page = (int)$_GET[$this->id];
 
     if (empty($this->current_page))
       $this->current_page = 1;



More information about the limb-svn mailing list