summaryrefslogtreecommitdiff
path: root/actions/editapplication.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-20 16:57:07 -0700
committerBrion Vibber <brion@pobox.com>2010-09-20 16:57:07 -0700
commit85bf20d95afeadd682584e595df9157ad853a3ed (patch)
tree4b4e3505e4e6b54fba36e853cc9400f9cc9cc69d /actions/editapplication.php
parentaef42e2f65d67db0c27521a69d15675515c9a80c (diff)
Fix error when editing OAuth app registration and only changing the icon.
Diffstat (limited to 'actions/editapplication.php')
-rw-r--r--actions/editapplication.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/editapplication.php b/actions/editapplication.php
index b25457069..477bcd6f0 100644
--- a/actions/editapplication.php
+++ b/actions/editapplication.php
@@ -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.'));
}