From 152aab4903afa548d25874c34d404a36bad9d0b9 Mon Sep 17 00:00:00 2001 From: kamel Date: Mon, 18 Oct 2021 10:10:31 +0200 Subject: [PATCH] Add test if actual entity is different to the entity provided --- htdocs/core/class/conf.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 4000dc4d6f1..3f938fe778c 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -161,8 +161,10 @@ class Conf */ public function setEntityValues($db, $entity) { - $this->entity = $entity; - $this->setValues($db); + if ($this->entity != $entity) { + $this->entity = $entity; + $this->setValues($db); + } } /**