Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix phpcs
  • Loading branch information
eldy committed Mar 15, 2019
1 parent 0126303 commit 82a9ac4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/expensereport/card.php
Expand Up @@ -2238,7 +2238,7 @@
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";
}
Expand Down Expand Up @@ -2335,12 +2335,12 @@
//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;
}
Expand Down

0 comments on commit 82a9ac4

Please sign in to comment.