Removed unserialize() for additionalData
authorAlexander Ebert <ebert@woltlab.com>
Mon, 18 Jun 2012 17:16:05 +0000 (19:16 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 18 Jun 2012 17:16:05 +0000 (19:16 +0200)
ObjectType itself handles the conversion already and is way more straight-forward if you ever fetch an object type directly.

wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php

index 61a1e985b5a3067abf66fe3fefaa603151694f8c..00242ebefcb5e9bc30278dbea833bb24ec07fdf1 100644 (file)
@@ -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);
                }