From a132bec27d6ba7259c7cc01c0c012a6c3293e80e Mon Sep 17 00:00:00 2001
From: engel <>
Date: Wed, 3 Jan 2024 15:35:17 +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: 79c7e1408f18c1b715f2ed79a0567fd71cd78a20d8726a711f2cefbc0c4b7541
---
templates/index.tpl | 2 +-
www/admin/index.php | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/templates/index.tpl b/templates/index.tpl
index 5e8edfc..131f213 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[]"
diff --git a/www/admin/index.php b/www/admin/index.php
index 225e2b2..2426c07 100644
--- a/www/admin/index.php
+++ b/www/admin/index.php
@@ -61,6 +61,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());