From: Alexander Ebert Date: Tue, 12 Jun 2012 16:41:42 +0000 (+0200) Subject: Fixed 'additionalData' access X-Git-Tag: 2.0.0_Beta_1~1006^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e5b5f506a291dd6b6c3f920a75aa26a5b82c491;p=GitHub%2FWoltLab%2FWCF.git Fixed 'additionalData' access --- diff --git a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php index d2369ad121..e96396717e 100644 --- a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php +++ b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php @@ -38,4 +38,16 @@ class ModificationLog extends DatabaseObject { return $value; } + + /** + * @see wcf\data\DatabaseObject::handleData() + */ + protected function handleData($data) { + parent::handleData($data); + + $this->data['additionalData'] = @unserialize($this->data['additionalData']); + if (!is_array($this->data['additionalData'])) { + $this->data['additionalData'] = array(); + } + } } diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php index 61cbb78969..0c2bd3ea58 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php @@ -41,6 +41,18 @@ class ObjectType extends ProcessibleDatabaseObject { return $value; } + /** + * @see wcf\data\DatabaseObject::handleData() + */ + protected function handleData($data) { + parent::handleData($data); + + $this->data['additionalData'] = @unserialize($this->data['additionalData']); + if (!is_array($this->data['additionalData'])) { + $this->data['additionalData'] = array(); + } + } + /** * @see wcf\data\ProcessibleDatabaseObject::getProcessor() */