Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Mar 21, 2024
1 parent 47940b7 commit 2cb5d62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [1.24.1] - 2024-03-21
- Fixed: warnings with php 8

## [1.24.0] - 2023-07-07
- Added: billingCountry field

Expand Down
2 changes: 0 additions & 2 deletions classes/EventListener/FormGeneratorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Contao\Controller;
use Contao\Database;
use Contao\Environment;
use Contao\Form;
use Contao\StringUtil;
use Contao\System;
Expand Down Expand Up @@ -111,7 +110,6 @@ public function onSendNotificationMessage(Message $message, array &$tokens, ?str
}

if (false === json_encode($tokens)) {

if (Validator::isBinaryUuid($tokens['form_uuid'])) {
$uuid = StringUtil::binToUuid($tokens['form_uuid']);
$tokens['raw_data'] = str_replace($tokens['form_uuid'], $uuid, $tokens['raw_data']);
Expand Down
4 changes: 2 additions & 2 deletions dca/tl_submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,11 @@
[
'export_csv' => \Contao\System::getContainer()
->get('huh.exporter.action.backendexport')
->getGlobalOperation('export_csv', $GLOBALS['TL_LANG']['MSC']['export_csv']),
->getGlobalOperation('export_csv', ($GLOBALS['TL_LANG']['MSC']['export_csv'] ?? 'Export CSV')),

'export_xls' => \Contao\System::getContainer()
->get('huh.exporter.action.backendexport')
->getGlobalOperation('export_xls', $GLOBALS['TL_LANG']['MSC']['export_xls'])
->getGlobalOperation('export_xls', $GLOBALS['TL_LANG']['MSC']['export_xls'] ?? 'Export XLS')
]
);
}
Expand Down

0 comments on commit 2cb5d62

Please sign in to comment.