mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-22 22:26:10 +01:00
Fix warnings in higher PHP versions ending up in TYPO3 log
This commit is contained in:
parent
06d111e132
commit
c6ca707b1c
2 changed files with 10 additions and 3 deletions
|
@ -312,7 +312,7 @@ class DestinationDataImportService
|
|||
$this->tmpCurrentEvent->setTitle(substr($event['title'], 0, 254));
|
||||
|
||||
// Set Highlight (Is only set in rest if true)
|
||||
if ($event['highlight']) {
|
||||
if (isset($event['highlight']) && $event['highlight']) {
|
||||
$this->tmpCurrentEvent->setHighlight($event['highlight']);
|
||||
}
|
||||
|
||||
|
@ -599,6 +599,10 @@ class DestinationDataImportService
|
|||
private function setTexts(array $texts): void
|
||||
{
|
||||
foreach ($texts as $text) {
|
||||
if (isset($text['value']) === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($text['rel'] == "details" && $text['type'] == "text/plain") {
|
||||
$this->tmpCurrentEvent->setDetails(str_replace('\n\n', '\n', $text['value']));
|
||||
}
|
||||
|
@ -702,7 +706,7 @@ class DestinationDataImportService
|
|||
$file->getUid(),
|
||||
[
|
||||
'title' => $media_object['value'],
|
||||
'description' => $media_object['description'],
|
||||
'description' => $media_object['description'] ?? '',
|
||||
'alternative' => 'DD Import'
|
||||
]
|
||||
);
|
||||
|
|
|
@ -30,7 +30,10 @@ call_user_func(function () {
|
|||
[\Wrm\Events\Controller\EventController::class => 'list']
|
||||
);
|
||||
|
||||
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'])) {
|
||||
if (
|
||||
isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|
||||
|| is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|
||||
) {
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue