From 7c54bf489dd42a1a0abd32ffc9757fb00cf84977 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 3 Nov 2011 18:29:17 +0100 Subject: [PATCH] Fix: problem with multicompany --- htdocs/core/class/conf.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index ac4bd8135d6..241a7f5e8cd 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -112,7 +112,7 @@ class Conf $sql = "SELECT ".$db->decrypt('name')." as name,"; $sql.= " ".$db->decrypt('value')." as value, entity"; $sql.= " FROM ".MAIN_DB_PREFIX."const"; - $sql.= " WHERE entity IN (0,1,".$this->entity.")"; // 1 to herite configuration + $sql.= " WHERE entity IN (0,".$this->entity.")"; $sql.= " ORDER BY entity"; // This is to have entity 0 first, then entity 1 that overwrite. $result = $db->query($sql);