From bcd3f24ab79cbc6c2e6b46dbfaab849e183e85df Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Sun, 29 Nov 2009 14:53:52 +0000 Subject: [PATCH] Fix: We must use conf->global instead of constant. If not and constant is defined twice (with 2 differents entity values), we use the wrong one. --- htdocs/fourn/fournisseur.commande.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/fournisseur.commande.class.php b/htdocs/fourn/fournisseur.commande.class.php index 7105dd109f0..27c05044456 100644 --- a/htdocs/fourn/fournisseur.commande.class.php +++ b/htdocs/fourn/fournisseur.commande.class.php @@ -473,9 +473,9 @@ class CommandeFournisseur extends Commande $modelisok=0; $liste=array(); - if (defined('COMMANDE_SUPPLIER_ADDON') && COMMANDE_SUPPLIER_ADDON) + if (! empty($conf->global->COMMANDE_SUPPLIER_ADDON)) { - $file = COMMANDE_SUPPLIER_ADDON.'.php'; + $file = $conf->global->COMMANDE_SUPPLIER_ADDON.'.php'; if (is_readable($dir.'/'.$file)) { -- GitLab