We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e13eb797 authored by Brion Vibber's avatar Brion Vibber

Fix PHP notice when submitting 'design' admin panel on a browser that doesn't...

Fix PHP notice when submitting 'design' admin panel on a browser that doesn't support file uploads such as Mobile Safari
parent c31aac11
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment