fixing postDescripption ternary when unefined value
This commit is contained in:
parent
43d5b67108
commit
7c5a401580
|
|
@ -12,7 +12,7 @@ $mainThematique = getMainThematique($thematique);
|
|||
$thematiqueColorSlug = $mainThematique->slug;
|
||||
$thematique_icon = get_field('taxonomy_pictures', 'thematiques' . '_' . $mainThematique->term_id)['icon'];
|
||||
|
||||
$postDescription = $attributes['postDescription'];
|
||||
$postDescription = $attributes['postDescription'] ?? null;
|
||||
|
||||
$coverUrl = $postType->name === 'videos-webinaires' && $postThumbnail ? $postThumbnail : ($thematique_icon ? $thematique_icon['url'] : null);
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $mainThematique = getMainThematique($thematique);
|
|||
$thematiqueColorSlug = $mainThematique->slug;
|
||||
$thematique_icon = get_field('taxonomy_pictures', 'thematiques' . '_' . $mainThematique->term_id)['icon'];
|
||||
|
||||
$postDescription = $attributes['postDescription'];
|
||||
$postDescription = $attributes['postDescription'] ?? null;
|
||||
|
||||
$coverUrl = $postType->name === 'videos-webinaires' && $postThumbnail ? $postThumbnail : ($thematique_icon ? $thematique_icon['url'] : null);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user