Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
* 'testing' of gitorious.org:statusnet/mainline: Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.
This commit is contained in:
commit
1f160bb7bc
|
@ -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