Fix error when editing OAuth app registration and only changing the icon.

This commit is contained in:
Brion Vibber 2010-09-20 16:57:07 -07:00
parent aef42e2f65
commit 85bf20d95a

View File

@ -253,7 +253,10 @@ class EditApplicationAction extends OwnerDesignAction
$result = $this->app->update($orig);
if (!$result) {
// Note: 0 means no rows changed, which can happen if the only
// thing we changed was the icon, since it's not altered until
// the next step.
if ($result === false) {
common_log_db_error($this->app, 'UPDATE', __FILE__);
$this->serverError(_('Could not update application.'));
}