[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: |
Fri, 01 Sep 2006 01:00:11 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Dave Hall <skwashd> 06/09/01 01:00:11
Modified files:
inc : class.db.inc.php
Log message:
change from deprecated Fields() to fields[]
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.db.inc.php?cvsroot=phpgwapi&r1=1.28&r2=1.29
Patches:
Index: class.db.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/class.db.inc.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- class.db.inc.php 29 Aug 2006 07:53:23 -0000 1.28
+++ class.db.inc.php 1 Sep 2006 01:00:11 -0000 1.29
@@ -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.28 2006/08/29 07:53:23 skwashd Exp
$
+ * @version $Id: class.db.inc.php,v 1.29 2006/09/01 01:00:11 skwashd Exp
$
*/
if (empty($GLOBALS['phpgw_info']['server']['db_type']))
@@ -563,15 +563,18 @@
{
if($this->resultSet && get_class($this->resultSet) !=
'adorecordset_empty')
{
- //echo "depricated: f";
+ if( isset($this->resultSet->fields[$name]) )
+ {
if ($strip_slashes || ($this->auto_stripslashes
&& ! $strip_slashes))
{
- return
stripslashes($this->resultSet->Fields($name));
+ return
stripslashes($this->resultSet->fields[$name]);
}
else
{
- return $this->resultSet->Fields($name);
+ return
$this->resultSet->fields[$name];
+ }
}
+ return '';
}
}