forked from GNUsocial/gnu-social
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()
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user