From f6d0e34923d36385ecfb9007139d1b2659ac5116 Mon Sep 17 00:00:00 2001 From: engel <> Date: Wed, 3 Jan 2024 15:44:52 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20case=20incorrectement=20coch=C3=A9?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 931d114c657192f31782dd3780630e6fc1f7a824f2e8ad30e50717ab92ff5d38 --- admin/index.php | 1 + templates/index.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index 1915b24..3b1e76f 100644 --- a/admin/index.php +++ b/admin/index.php @@ -62,6 +62,7 @@ $tpl->assign('lesTarifs', $_SESSION['lesTarifs']); $tpl->assign('lesActivites', $_SESSION['lesActivites']); $tpl->assign('activitesTarifsComptes', $activitesTarifsComptes); $tpl->assign('comptesSansActivite', $comptesSansActivite); +$tpl->assign('nbComptesSansActivite',count($comptesSansActivite)); $tpl->assign('nbTarifs', count($activitesTarifsComptes)); $tpl->assign('nbComptes', count($_SESSION['comptes'])); $tpl->assign('plugin_config', $plugin->getConfig()); diff --git a/templates/index.tpl b/templates/index.tpl index d04af70..07bb183 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -102,7 +102,7 @@ $activite = $lesActivites[$tarif->idActivite]; ?>
- {if $nbTarifs == 1} + {if $nbTarifs == 1 && $nbComptesSansActivite == 0} {input type="checkbox" name="tarifs[]"