Merge pull request #134 from wdammak/patch-29

Update Module.php
This commit is contained in:
Rohit Jain
2020-10-20 22:35:38 +05:30
committed by GitHub

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