From 2e1fe61ae4589a32d0ddc8d646a5ad6389c74019 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 4 Nov 2011 15:19:19 +0100 Subject: [PATCH] Fixed additional data access --- .../install/files/lib/data/object/type/ObjectType.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ce20edb902..e4042c0b0f 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php @@ -33,8 +33,8 @@ class ObjectType extends ProcessibleDatabaseObject { // treat additional data as data variables if it is an array if ($value === null) { - if (is_array($this->additionalData) && isset($this->additionalData[$name])) { - $value = $this->additionalData[$name]; + if (is_array($this->data['additionalData']) && isset($this->data['additionalData'][$name])) { + $value = $this->data['additionalData'][$name]; } } -- 2.20.1