on n'affiche que si le module commande est actif

This commit is contained in:
erics 2004-12-22 20:20:56 +00:00
parent ae5bdc9236
commit 76c895aaf6

View File

@ -1,6 +1,7 @@
<?php <?php
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Destailleur Laurent <eldy@users.sourceforge.net> * Copyright (C) 2004 Destailleur Laurent <eldy@users.sourceforge.net>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -264,9 +265,10 @@ if ($_GET["propalid"])
} }
print "</table>"; print "</table>";
/* /*
* * Que si le module commande est actif !
* *
*/ */
if($conf->commande->enabled) {
$nb_commande = sizeof($propal->commande_liste_array()); $nb_commande = sizeof($propal->commande_liste_array());
if ($nb_commande > 0) if ($nb_commande > 0)
{ {
@ -294,6 +296,7 @@ if ($_GET["propalid"])
} }
print "</table>"; print "</table>";
} }
}
/* /*
* *