diff --git a/Classes/AssetSource/CantoAssetProxy.php b/Classes/AssetSource/CantoAssetProxy.php index 97ab72b..78ba61c 100644 --- a/Classes/AssetSource/CantoAssetProxy.php +++ b/Classes/AssetSource/CantoAssetProxy.php @@ -81,7 +81,7 @@ public static function fromJsonObject(stdClass $jsonObject, CantoAssetSource $as $assetProxy->lastModified = \DateTime::createFromFormat('YmdHisv', $jsonObject->default->{'Date modified'}); $assetProxy->fileSize = (int)$jsonObject->size; $assetProxy->mediaType = MediaTypes::getMediaTypeFromFilename($jsonObject->name); - $assetProxy->tags = $jsonObject->tag ?? []; + $assetProxy->tags = $jsonObject->tag ? (array)$jsonObject->tag : []; $assetProxy->iptcProperties['CopyrightNotice'] = $jsonObject->copyright ?? ($jsonObject->default->Copyright ?? '');