]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix PHP notice when submitting 'design' admin panel on a browser that doesn't support...
authorBrion Vibber <brion@pobox.com>
Tue, 19 Oct 2010 22:09:45 +0000 (15:09 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 19 Oct 2010 22:09:45 +0000 (15:09 -0700)
actions/designadminpanel.php

index 587333e06aa3f57cee24ce35400721d24345c011..199be43ead63968ef71c9521cd791f98a69a1502 100644 (file)
@@ -258,8 +258,8 @@ class DesignadminpanelAction extends AdminPanelAction
     function saveBackgroundImage()
     {
         $filename = null;
-
-        if ($_FILES['design_background-image_file']['error'] ==
+        if (isset($_FILES['design_background-image_file']['error']) &&
+            $_FILES['design_background-image_file']['error'] ==
             UPLOAD_ERR_OK) {
 
             $filepath = null;