From 8078d29a81ee6a046642aa163f7d8b95743a5f10 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 18 Jun 2012 19:16:05 +0200 Subject: [PATCH] Removed unserialize() for additionalData ObjectType itself handles the conversion already and is way more straight-forward if you ever fetch an object type directly. --- .../lib/system/cache/builder/ObjectTypeCacheBuilder.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php index 61a1e985b5..00242ebefc 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php @@ -48,7 +48,6 @@ class ObjectTypeCacheBuilder implements ICacheBuilder { $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array($packageID)); while ($row = $statement->fetchArray()) { - $row['additionalData'] = unserialize($row['additionalData']); $data['objectTypes'][$row['objectTypeID']] = new ObjectType(null, $row); } -- 2.20.1