forked from GNUsocial/gnu-social
Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.
This commit is contained in:
parent
1301877dfe
commit
01a1e882af
@ -301,6 +301,10 @@ class AvatarsettingsAction extends AccountSettingsAction
|
|||||||
$this->showForm($e->getMessage());
|
$this->showForm($e->getMessage());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ($imagefile === null) {
|
||||||
|
$this->showForm(_('No file uploaded.'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$cur = common_current_user();
|
$cur = common_current_user();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user