Skip to content

Commit

Permalink
Merge pull request #33 from RicLeP/patch-1
Browse files Browse the repository at this point in the history
enrichContent turning empty arrays into strings
  • Loading branch information
christianzoppi authored Jan 12, 2022
2 parents 4db7144 + fae2df8 commit a8836a3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Storyblok/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,6 @@ private function enrichStories($data, $queryString) {
*/
function enrichContent($data) {
$enrichedContent = $data;
if (empty($data)) {
return '';
}

if (is_array($data) && isset($data['component'])) {
if(!isset($story['_stopResolving'])) {
Expand Down

0 comments on commit a8836a3

Please sign in to comment.