cosmetic nullsafe fix
This commit is contained in:
parent
6acb50ed54
commit
3dd0260053
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ class Widgets
|
|||
return '';
|
||||
}
|
||||
|
||||
// nullsafe PHP < 8.0
|
||||
if (is_null(dcCore::app()->blog)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$ftdatecrea = $w->ftdatecrea;
|
||||
//Si la date est vide nous recherchons la date en base
|
||||
if (strlen(rtrim($ftdatecrea)) == 0) {
|
||||
|
|
Loading…
Reference in a new issue