From: Alexander Ebert Date: Mon, 18 Jun 2012 17:16:05 +0000 (+0200) Subject: Removed unserialize() for additionalData X-Git-Tag: 2.0.0_Beta_1~1064 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8078d29a81ee6a046642aa163f7d8b95743a5f10;p=GitHub%2FWoltLab%2FWCF.git Removed unserialize() for additionalData ObjectType itself handles the conversion already and is way more straight-forward if you ever fetch an object type directly. --- 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); }