phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.db_mysql.inc.php, 1.30.2.3.2.6, 1


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] phpgwapi/inc class.db_mysql.inc.php, 1.30.2.3.2.6, 1.30.2.3.2.7
Date: Thu, 13 Nov 2003 17:09:20 +0000

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv18368

Modified Files:
      Tag: Version-0_9_16-branch
        class.db_mysql.inc.php 
Log Message:
bug #5923

Index: class.db_mysql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.db_mysql.inc.php,v
retrieving revision 1.30.2.3.2.6
retrieving revision 1.30.2.3.2.7
diff -C2 -d -r1.30.2.3.2.6 -r1.30.2.3.2.7
*** class.db_mysql.inc.php      24 Oct 2003 02:47:15 -0000      1.30.2.3.2.6
--- class.db_mysql.inc.php      13 Nov 2003 17:09:17 -0000      1.30.2.3.2.7
***************
*** 155,163 ****
  
                // public: perform a query with limited result set
!               function limit_query($Query_String, $offset, $line = '', $file 
= '', $num_rows = '')
                {
!                       if (! $num_rows)
                        {
!                               $num_rows = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
                        }
  
--- 155,167 ----
  
                // public: perform a query with limited result set
!               function limit_query($Query_String, $offset, $line = '', $file 
= '', $num_rows = 0)
                {
!                       $offset         = intval($offset);
!                       $num_rows       = intval($num_rows);
! 
!                       if ($num_rows == 0)
                        {
!                               $maxmatches = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
!                               $num_rows = 
(isset($maxmatches)?intval($maxmatches):15);
                        }
  





reply via email to

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