summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-18 17:18:01 -0700
committerBrion Vibber <brion@pobox.com>2010-03-18 17:18:01 -0700
commit01a1e882afeb78542b02e4643c5d8a2fa50c2206 (patch)
treeaeb1cb90a2a5e9f8262ca50bb4302cd0a6273a55 /actions
parent1301877dfe89c57c182246c0d7ba0ff6335fd17b (diff)
Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.
Diffstat (limited to 'actions')
-rw-r--r--actions/avatarsettings.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/avatarsettings.php b/actions/avatarsettings.php
index 6a7398746..d4ea11cb7 100644
--- a/actions/avatarsettings.php
+++ b/actions/avatarsettings.php
@@ -301,6 +301,10 @@ class AvatarsettingsAction extends AccountSettingsAction
$this->showForm($e->getMessage());
return;
}
+ if ($imagefile === null) {
+ $this->showForm(_('No file uploaded.'));
+ return;
+ }
$cur = common_current_user();