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:
Brion Vibber 2010-10-19 15:09:45 -07:00
parent c31aac1113
commit e13eb797c7

View File

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