DbObject: no change on update is not an error

This commit is contained in:
Thomas Gelf 2015-12-02 02:44:10 +01:00
parent c0c3d1b16d
commit a09c34a190

View File

@ -636,7 +636,7 @@ abstract class DbObject
try { try {
if ($this->hasBeenLoadedFromDb()) { if ($this->hasBeenLoadedFromDb()) {
if ($this->updateDb()) { if ($this->updateDb() !== false) {
$result = true; $result = true;
$this->onUpdate(); $this->onUpdate();
} else { } else {