Index: branches/RC/core/kernel/db/dbitem.php =================================================================== diff -u -N -r10334 -r10576 --- branches/RC/core/kernel/db/dbitem.php (.../dbitem.php) (revision 10334) +++ branches/RC/core/kernel/db/dbitem.php (.../dbitem.php) (revision 10576) @@ -441,7 +441,7 @@ if ($this->mode != 't') { $this->Application->resetCounters($this->TableName); } - return true; + return true; } function ValidateField($field) @@ -812,10 +812,11 @@ $q = 'DELETE FROM '.$this->TableName.' WHERE '.$this->GetKeyClause('Delete'); $ret = $this->Conn->ChangeQuery($q); + $affected_rows = $this->Conn->getAffectedRows(); $this->setModifiedFlag(clDELETE); - if ($this->Conn->getAffectedRows() > 0) { + if ($affected_rows > 0) { // something was actually deleted $this->raiseEvent('OnAfterItemDelete'); }