[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc class.socommon.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] property/inc class.socommon.inc.php |
Date: |
Mon, 09 Oct 2006 17:27:33 +0000 |
CVSROOT: /sources/phpgroupware
Module name: property
Changes by: Sigurd Nes <sigurdne> 06/10/09 17:27:33
Modified files:
inc : class.socommon.inc.php
Log message:
fix next_id
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/class.socommon.inc.php?cvsroot=phpgroupware&r1=1.29&r2=1.30
Patches:
Index: class.socommon.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/class.socommon.inc.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- class.socommon.inc.php 9 Oct 2006 17:20:39 -0000 1.29
+++ class.socommon.inc.php 9 Oct 2006 17:27:33 -0000 1.30
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage core
- * @version $Id: class.socommon.inc.php,v 1.29 2006/10/09 17:20:39
sigurdne Exp $
+ * @version $Id: class.socommon.inc.php,v 1.30 2006/10/09 17:27:33
sigurdne Exp $
*/
/**
@@ -282,9 +282,9 @@
$where='WHERE ' . implode("' AND ", $condition)
. "'";
}
- $this->db2->query("SELECT max(id) as maximum FROM
$table $where",__LINE__,__FILE__);
- $this->db2->next_record();
- $next_id = $this->db2->f('maximum')+1;
+ $this->db->query("SELECT max(id) as maximum FROM $table
$where",__LINE__,__FILE__);
+ $this->db->next_record();
+ $next_id = $this->db->f('maximum')+1;
return $next_id;
}
function get_lookup_entity($location)