summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/designadminpanel.php4
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;