From 8d4db1d085dad8f0c25dd59c815b247f8ac0dcb4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Nov 2018 16:35:37 +0100 Subject: [PATCH] Fix phpcs --- htdocs/categories/photos.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/categories/photos.php b/htdocs/categories/photos.php index e9803c7f4a5..72356b1e97e 100644 --- a/htdocs/categories/photos.php +++ b/htdocs/categories/photos.php @@ -69,7 +69,7 @@ if ($id > 0) if (isset($_FILES['userfile']) && $_FILES['userfile']['size'] > 0 && $_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC)) { if ($object->id) { - + $file = $_FILES['userfile']; if (is_array($file['name']) && count($file['name']) > 0) { @@ -82,11 +82,10 @@ if (isset($_FILES['userfile']) && $_FILES['userfile']['size'] > 0 && $_POST["sen } } } - - if(!empty($file['tmp_name'])){ + + if(!empty($file['tmp_name'])) { $object->add_photo($upload_dir, $file); } - } }