]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/avatarsettings.php
Undefined Variable in foafgroup.php
[quix0rs-gnu-social.git] / 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();