fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11340] API: adodb limit query


From: Sigurd Nes
Subject: [Fmsystem-commits] [11340] API: adodb limit query
Date: Fri, 27 Sep 2013 14:20:52 +0000

Revision: 11340
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11340
Author:   sigurdne
Date:     2013-09-27 14:20:51 +0000 (Fri, 27 Sep 2013)
Log Message:
-----------
API: adodb limit query

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.db_adodb.inc.php

Modified: trunk/phpgwapi/inc/class.db_adodb.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.db_adodb.inc.php   2013-09-27 14:02:02 UTC (rev 
11339)
+++ trunk/phpgwapi/inc/class.db_adodb.inc.php   2013-09-27 14:20:51 UTC (rev 
11340)
@@ -284,7 +284,10 @@
                */
                public function limit_query($Query_String, $offset, $line = '', 
$file = '', $num_rows = 0)
                {
-                       if ( (int) $num_rows <= 0 )
+                       $offset         = (int)$offset;
+                       $num_rows       = (int)$num_rows;
+
+                       if ( $num_rows <= 0 )
                        {
                                $num_rows = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
                        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]