Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.

This commit is contained in:
Brion Vibber 2010-03-18 17:18:01 -07:00
parent 1301877dfe
commit 01a1e882af

View File

@ -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();