From 82a9ac4f65059f5906f9cf7d3a2cce8dd7709db5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 Mar 2019 16:07:08 +0100 Subject: [PATCH] Fix phpcs --- htdocs/expensereport/card.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index d2a6fc965f8..c39b67a8680 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -2238,7 +2238,7 @@ else jQuery(".trattachnewfilenow").toggle(); return false; });'; - if (is_array(GETPOST('attachfile','array')) && count(GETPOST('attachfile','array'))) + if (is_array(GETPOST('attachfile', 'array')) && count(GETPOST('attachfile', 'array'))) { print 'jQuery(".trattachnewfilenow").toggle();'."\n"; } @@ -2335,12 +2335,12 @@ else //var_dump(GETPOST($file['relativename'])); var_dump($file['relativename']); var_dump($_FILES['userfile']['name']); foreach($_FILES['userfile']['name'] as $tmpfile) { - if ($file['relativename'] == (GETPOST('savingdocmask','alpha') ? dol_sanitizeFileName($object->ref.'-') : '').$tmpfile) + if ($file['relativename'] == (GETPOST('savingdocmask', 'alpha') ? dol_sanitizeFileName($object->ref.'-') : '').$tmpfile) { $checked=' checked'; break; } - elseif ($file['relativename'] && in_array($file['relativename'], GETPOST('attachfile','array'))) { + elseif ($file['relativename'] && in_array($file['relativename'], GETPOST('attachfile', 'array'))) { $checked=' checked'; break; }