Fix PHP notice when submitting 'design' admin panel on a browser that doesn't support file uploads such as Mobile Safari
This commit is contained in:
parent
c31aac1113
commit
e13eb797c7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user