cvs: pear /DB_DataObject DataObject.php

From: Date: Thu, 21 Jul 2005 06:36:20 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33187@lists.php.net to get a copy of this message
alan_k Thu Jul 21 02:36:20 2005 EDT Modified files: /pear/DB_DataObject DataObject.php Log: fix bug #4871 - remove warning when value is not found in table http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.363&r2=1.364&ty=u Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.363 pear/DB_DataObject/DataObject.php:1.364 --- pear/DB_DataObject/DataObject.php:1.363 Thu Jul 21 02:33:36 2005 +++ pear/DB_DataObject/DataObject.php Thu Jul 21 02:36:20 2005 @@ -15,7 +15,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DataObject.php,v 1.363 2005/07/21 06:33:36 alan_k Exp $ + * @version CVS: $Id: DataObject.php,v 1.364 2005/07/21 06:36:20 alan_k Exp $ * @link http://pear.php.net/package/DB_DataObject */ @@ -1931,7 +1931,7 @@ // if the key is not an integer - then it's not a sequence or native - if (!($table[$usekey] & DB_DATAOBJECT_INT)) { + if (empty($table[$usekey]) || !($table[$usekey] & DB_DATAOBJECT_INT)) { return $_DB_DATAOBJECT['SEQUENCE'][$this->_database][$this->__table] = array(false,false,false); }

« previous php.pear.cvs (#33187) next »