[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.db.inc.php
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.db.inc.php |
Date: |
Wed, 16 Aug 2006 05:04:23 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Dave Hall <skwashd> 06/08/16 05:04:23
Modified files:
inc : class.db.inc.php
Log message:
fix limit_query
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.db.inc.php?cvsroot=phpgwapi&r1=1.25&r2=1.26
Patches:
Index: class.db.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/class.db.inc.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- class.db.inc.php 21 Apr 2006 18:46:01 -0000 1.25
+++ class.db.inc.php 16 Aug 2006 05:04:22 -0000 1.26
@@ -9,7 +9,7 @@
* @link http://www.sanisoft.com/phplib/manual/DB_sql.php
* @package phpgwapi
* @subpackage database
- * @version $Id: class.db.inc.php,v 1.25 2006/04/21 18:46:01 sigurdne
Exp $
+ * @version $Id: class.db.inc.php,v 1.26 2006/08/16 05:04:22 skwashd Exp
$
*/
if (empty($GLOBALS['phpgw_info']['server']['db_type']))
@@ -283,6 +283,11 @@
*/
function limit_query($Query_String, $offset = -1, $line = '',
$file = '', $num_rows = -1)
{
+ if ( (int) $num_rows <= 0 )
+ {
+ $num_rows =
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
+ }
+
if($this->debug)
{
//$GLOBALS['phpgw']->log
- [Phpgroupware-cvs] phpgwapi/inc class.db.inc.php,
Dave Hall <=