escaping thematiqueColorSlug if null
This commit is contained in:
parent
c1f9be6366
commit
3717c9e353
2
page.php
2
page.php
|
|
@ -2,7 +2,7 @@
|
||||||
<?php
|
<?php
|
||||||
$currentThematique = get_the_terms(get_the_ID(), 'thematiques')[0] ?? '';
|
$currentThematique = get_the_terms(get_the_ID(), 'thematiques')[0] ?? '';
|
||||||
$mainThematique = getMainThematique($currentThematique);
|
$mainThematique = getMainThematique($currentThematique);
|
||||||
$thematiqueColorSlug = $mainThematique->slug;
|
$thematiqueColorSlug = $mainThematique->slug ?? null;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user