Skip to content

Commit

Permalink
Prevent PHP8 warning (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tastaturberuf authored Sep 8, 2022
1 parent 8ca672a commit f374419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function onsubmitCallback($dc)
foreach ($GLOBALS['TL_DCA']['tl_content']['fields'] as $field => $config) {
if (array_key_exists('default', $config)) {
$set[$field] = \is_array($config['default']) ? serialize($config['default']) : $config['default'];
if ($GLOBALS['TL_DCA']['tl_content']['fields'][$field]['eval']['encrypt']) {
if ($GLOBALS['TL_DCA']['tl_content']['fields'][$field]['eval']['encrypt'] ?? false) {
$set[$field] = Encryption::encrypt($set[$field]);
}
}
Expand Down

0 comments on commit f374419

Please sign in to comment.