Skip to content

Commit

Permalink
DB_DatabaseObject error handling hack dating back to svn
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jan 3, 2020
1 parent a70412b commit 253242d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions DB/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -1560,10 +1560,12 @@ function update($dataObject = false)
return true;
}

$this->raiseError(
"update: No Data specifed for query $settings , {$this->_query['condition']}",
DB_DATAOBJECT_ERROR_NODATA);
return false;
// $this->raiseError(
// "update: No Data specifed for query $settings , {$this->_query['condition']}",
// DB_DATAOBJECT_ERROR_NODATA);
// return false;
// we allow empty updates always [CiviCRM]
return true;
}

/**
Expand Down

0 comments on commit 253242d

Please sign in to comment.