Skip to content

Commit

Permalink
Merge pull request #134 from wdammak/patch-29
Browse files Browse the repository at this point in the history
Update Module.php
  • Loading branch information
rohit053 committed Oct 20, 2020
2 parents 5a8992c + 0bceff5 commit a44f38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/module/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function __construct($name = null, Context $context = null)
$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;
}
}
Expand Down

0 comments on commit a44f38e

Please sign in to comment.