diff --git a/classes/module/Module.php b/classes/module/Module.php index 642d585ed..1812787c8 100644 --- a/classes/module/Module.php +++ b/classes/module/Module.php @@ -316,7 +316,7 @@ abstract class ModuleCore $this->id = self::$modules_cache[$this->name]['id_module']; } foreach (self::$modules_cache[$this->name] as $key => $value) { - if (array_key_exists($key, $this)) { + if (property_exists($this, $key)) { $this->{$key} = $value; } }