]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.
authorBrion Vibber <brion@pobox.com>
Fri, 19 Mar 2010 00:18:01 +0000 (17:18 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 19 Mar 2010 00:18:01 +0000 (17:18 -0700)
actions/avatarsettings.php

index 6a7398746ae8f8ec2a5916812f588202c2487f8d..d4ea11cb7e9deb03b3857e4abff3ee4608d5cd76 100644 (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();