diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-19 15:09:45 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-19 15:09:45 -0700 |
commit | e13eb797c75b487d003d76c6a228d13cd5c1f1ac (patch) | |
tree | 7c1b6d7cbde2648bfa3ab4131a58ce39882828b2 | |
parent | c31aac11132f20737a3d0c69a65a20fcc3ade834 (diff) |
Fix PHP notice when submitting 'design' admin panel on a browser that doesn't support file uploads such as Mobile Safari
-rw-r--r-- | actions/designadminpanel.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/designadminpanel.php b/actions/designadminpanel.php index 587333e06..199be43ea 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; |