Update Module.php

PHP7.4 Deprecated
This commit is contained in:
wdammak
2020-09-29 17:22:47 +02:00
committed by GitHub
parent 3e3dc9fbaa
commit 0bceff5486

View File

@@ -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;
}
}