Skip to content

Commit

Permalink
Revert "Check if image exists"
Browse files Browse the repository at this point in the history
This reverts commit 05dd9d9.
  • Loading branch information
rmens committed Oct 21, 2024
1 parent 05dd9d9 commit d622941
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lib/teksttv.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,11 @@ private function get_primary_category_image($post_id)

private function get_image_slide($block)
{
// Check if the image exists
if (!empty($block['afbeelding']) && !empty($block['afbeelding']['url'])) {
return [
'type' => 'image',
'duration' => \intval($block['seconden']) * 1000,
'url' => $block['afbeelding']['url'],
];
}
// If no image exists, return null
return null;
return [
'type' => 'image',
'duration' => \intval($block['seconden']) * 1000,
'url' => $block['afbeelding']['url'],
];
}

private function get_ad_campaigns()
Expand Down

0 comments on commit d622941

Please sign in to comment.