From db95339085aab5a0244ac05809675d92b29745c9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 5 Jul 2021 20:32:05 +0200 Subject: [PATCH] Code comment --- htdocs/core/lib/functions.lib.php | 2 +- htdocs/expensereport/card.php | 58 +++++++++++++++---------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 81984c17316..f10b430ddbd 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7439,7 +7439,7 @@ function print_date_range($date_start, $date_end, $format = '', $outputlangs = ' * @param int $date_end End date * @param string $format Output format * @param Translate $outputlangs Output language - * @param integer $withparenthesis 1=Add parenthesis, 0=non parenthesis + * @param integer $withparenthesis 1=Add parenthesis, 0=no parenthesis * @return string String */ function get_date_range($date_start, $date_end, $format = '', $outputlangs = '', $withparenthesis = 1) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 35cf2f69b37..d207ffd20c1 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1675,15 +1675,15 @@ if ($action == 'create') { print ''; print ''.$langs->trans("User").''; print ''; - if ($object->fk_user_author > 0) { - $userauthor = new User($db); - $result = $userauthor->fetch($object->fk_user_author); - if ($result < 0) { - dol_print_error('', $userauthor->error); - } elseif ($result > 0) { - print $userauthor->getNomUrl(-1); - } - } + if ($object->fk_user_author > 0) { + $userauthor = new User($db); + $result = $userauthor->fetch($object->fk_user_author); + if ($result < 0) { + dol_print_error('', $userauthor->error); + } elseif ($result > 0) { + print $userauthor->getNomUrl(-1); + } + } print ''; // Period @@ -2474,32 +2474,32 @@ if ($action == 'create') { print ''; } // Fin si c'est payé/validé - print ''; - print ''; + print ''; + print ''; - print ''; + '; - print ''; + print ''; - print dol_get_fiche_end(); + print dol_get_fiche_end(); } } else { dol_print_error($db);