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());