diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 64eaea3a7f4..68419253c60 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -24,7 +24,7 @@ * \file htdocs/compta/paiement.php * \ingroup compta * \brief Page to create a payment - * \version $Id: paiement.php,v 1.110 2011/07/11 09:32:35 cdelambert Exp $ + * \version $Id: paiement.php,v 1.111 2011/07/13 08:57:21 eldy Exp $ */ require('../main.inc.php'); @@ -253,7 +253,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie if (! empty($conf->global->PAYPAL_BANK_ACCOUNT)) $accountid=$conf->global->PAYPAL_BANK_ACCOUNT; $paymentnum=$facture->ref_int; } - if ($conf->use_javascript_ajax) + if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT)) { print "\n".'