From 963ba19f94559dbc5524a34b6827afc0b2e41b66 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 11 Nov 2009 17:29:01 +0000 Subject: [PATCH] Fix: uniformize code Fix: bug --- htdocs/cashdesk/include/environnement.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/cashdesk/include/environnement.php b/htdocs/cashdesk/include/environnement.php index 0825681b969..cdc13e67dca 100644 --- a/htdocs/cashdesk/include/environnement.php +++ b/htdocs/cashdesk/include/environnement.php @@ -48,17 +48,18 @@ $conf_fkaccount_cb = $conf->global->CASHDESK_ID_BANKACCOUNT_CB > 0?$conf->global $conf_fkentrepot = $conf->global->CASHDESK_ID_WAREHOUSE > 0?$conf->global->CASHDESK_ID_WAREHOUSE:$_SESSION["CASHDESK_ID_WAREHOUSE"]; // Check if setup ok +$error = ''; if (empty($conf_fksoc)) { - print '
Setup of CashDesk module not complete. Third party not defined
'; + $error.= '
Setup of CashDesk module not complete. Third party not defined
'; } if ($conf->banque->enabled && (empty($conf_fkaccount_cash) || empty($conf_fkaccount_cheque) || empty($conf_fkaccount_cb))) { - print '
Setup of CashDesk module not complete. Bank account not defined
'; + $error.= '
Setup of CashDesk module not complete. Bank account not defined
'; } if ($conf->stock->enabled && empty($conf_fkentrepot)) { - print '
Setup of CashDesk module not complete. Warehouse not defined
'; + $error.= '
Setup of CashDesk module not complete. Warehouse not defined
'; } // Parametres d'affichage