From ee07796131ae28e6f43926bb46539cfa495ca6c8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Apr 2021 15:39:34 +0200 Subject: [PATCH] Update card.php --- htdocs/projet/card.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index b93f7168b9f..5ce32767c4c 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -898,20 +898,20 @@ if ($action == 'create' && $user->rights->projet->creer) if (empty($conf->global->PROJECT_DISABLE_PRIVATE_PROJECT)) $array[0] = $langs->trans("PrivateProject"); if (empty($conf->global->PROJECT_DISABLE_PUBLIC_PROJECT)) $array[1] = $langs->trans("SharedProject"); - if (count($array) > 0) - { + if (count($array) > 0) { print $form->selectarray('public', $array, $object->public, 0, 0, 0, '', 0, 0, 0, '', '', 1); - } - else { + } else { print ''; - if ($object->public==0) print $langs->trans("PrivateProject"); - else print $langs->trans("SharedProject"); + if ($object->public == 0) { + print $langs->trans("PrivateProject"); + } else { + print $langs->trans("SharedProject"); + } } print ''; - if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) - { + if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) { $classfortr = ($object->usage_opportunity ? '' : ' hideobject'); // Opportunity status print ''.$langs->trans("OpportunityStatus").'';