PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject » Bug #2318

update($obj) with no changes returns False

Details

Submitted2004-09-13 08:44 UTC
Fromjeroenl at zwolnet dot com
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version4.3.8
Roadmaps(Not assigned)

Comments

[2004-09-13 08:44 UTC] jeroenl at zwolnet dot com

Description:
------------
An update with a specified object returns false iso. true if there are no changes.

Am I missing someting or should the code in update() be:

// if you manually specified a dataobject, and there where no changes - then it's ok..
if ($dataObject !== false) {
return true;
}

i.s.o.
// if you manually specified a dataobject, and there where no changes - then it's ok..
if ($dataObject !== false) {
return false;
}