forked from GNUsocial/gnu-social
Fix error when editing OAuth app registration and only changing the icon.
This commit is contained in:
parent
aef42e2f65
commit
85bf20d95a
@ -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.'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user