function delete in dataobjects now don't break strict syntax

This commit is contained in:
Mikael Nordfeldth
2013-10-29 10:20:57 +01:00
parent 23a6b4595f
commit 2dfa0bfcee
19 changed files with 46 additions and 45 deletions

View File

@@ -678,11 +678,11 @@ class User extends Managed_DataObject
return $this->getProfile()->hasRight($right);
}
function delete()
function delete($useWhere=false)
{
if (empty($this->id)) {
common_log(LOG_WARNING, "Ambiguous User->delete(); skipping related tables.");
return parent::delete();
return parent::delete($useWhere);
}
try {
@@ -710,7 +710,7 @@ class User extends Managed_DataObject
$this->_deleteTags();
$this->_deleteBlocks();
parent::delete();
return parent::delete($useWhere);
}
function _deleteTags()