Home » Database » DB_DataObject » Bug #2318
update($obj) with no changes returns False
Details
| Submitted | 2004-09-13 08:44 UTC |
|---|---|
| From | jeroenl at zwolnet dot com |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 4.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;
}