From 9a7aa16054e16d6cd87a4a5be291d90e7694c11e Mon Sep 17 00:00:00 2001 From: micha vie Date: Tue, 16 Aug 2022 12:22:05 +0200 Subject: [PATCH] fix api nft entity empty tags --- src/Api/Entities/Nft.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Entities/Nft.php b/src/Api/Entities/Nft.php index 4d23107..7841d56 100644 --- a/src/Api/Entities/Nft.php +++ b/src/Api/Entities/Nft.php @@ -36,7 +36,7 @@ public function __construct( public function getTags(): array { if (!empty($this->tags)) { - return $this->tags; + return array_filter($this->tags); } preg_match('/tags:(?[\w\s\,]*)/', base64_decode($this->attributes), $matches);