Skip to content

Commit

Permalink
Fix php8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Sep 29, 2023
1 parent fe322bc commit 65e90f4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions contao/modules/ModuleRecommendationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,20 +268,20 @@ protected function compile(): void

// Prepare the record
$arrData = [
'tstamp' => $time,
'pid' => $this->recommendation_archive,
'title' => $arrWidgets['title']->value ?: '',
'alias' => $arrWidgets['title']->value ? StringUtil::generateAlias($arrWidgets['title']->value) : '',
'author' => $arrWidgets['author']->value,
'email' => $arrWidgets['email']->value ?: '',
'location' => $arrWidgets['location']->value ?: '',
'customField' => $arrWidgets['customField']->value ?: '',
'date' => $time,
'time' => $time,
'text' => $this->convertLineFeeds($strText),
'rating' => $arrWidgets['rating']->value,
'scope' => $arrWidgets['scope']->value ?? '',
'published' => $this->recommendation_moderate ? '' : 1
'tstamp' => $time,
'pid' => $this->recommendation_archive,
'title' => $arrWidgets['title']->value ?? '',
'alias' => isset($arrWidgets['title']) ? StringUtil::generateAlias($arrWidgets['title']->value) : '',
'author' => $arrWidgets['author']->value,
'email' => $arrWidgets['email']->value ?? '',
'location' => $arrWidgets['location']->value ?? '',
'customField' => $arrWidgets['customField']->value ?? '',
'date' => $time,
'time' => $time,
'text' => $this->convertLineFeeds($strText),
'rating' => $arrWidgets['rating']->value,
'scope' => $arrWidgets['scope']->value ?? '',
'published' => $this->recommendation_moderate ? '' : 1
];

// Store the recommendation
Expand Down

0 comments on commit 65e90f4

Please sign in to comment.