diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-18 17:18:01 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-18 17:18:01 -0700 |
commit | 01a1e882afeb78542b02e4643c5d8a2fa50c2206 (patch) | |
tree | aeb1cb90a2a5e9f8262ca50bb4302cd0a6273a55 | |
parent | 1301877dfe89c57c182246c0d7ba0ff6335fd17b (diff) |
Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.
-rw-r--r-- | actions/avatarsettings.php | 4 |
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(); |