From: Brion Vibber Date: Tue, 19 Oct 2010 22:09:45 +0000 (-0700) Subject: Fix PHP notice when submitting 'design' admin panel on a browser that doesn't support... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e13eb797c75b487d003d76c6a228d13cd5c1f1ac;p=quix0rs-gnu-social.git Fix PHP notice when submitting 'design' admin panel on a browser that doesn't support file uploads such as Mobile Safari --- diff --git a/actions/designadminpanel.php b/actions/designadminpanel.php index 587333e06a..199be43ead 100644 --- a/actions/designadminpanel.php +++ b/actions/designadminpanel.php @@ -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;