Skip to content

Commit

Permalink
Merge pull request #5838 from WoltLab/category-additional-data
Browse files Browse the repository at this point in the history
Make magic method `__isset` respect additionalData properties
  • Loading branch information
BurntimeX authored Mar 7, 2024
2 parents 202fb16 + 2ce7e92 commit 59f5913
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wcfsetup/install/files/lib/data/category/Category.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ public function __get($name)
return $value;
}

/**
* @inheritDoc
*/
public function __isset($name)
{
return parent::__isset($name) || isset($this->data['additionalData'][$name]);
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit 59f5913

Please sign in to comment.