Skip to content

Commit

Permalink
Fix PHP 8 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed May 20, 2022
1 parent f158ccd commit bd923f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/tl_nc_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function toggleVisibility($intId, $blnVisible)
$objVersions->initialize();

// Trigger the save_callback
if (is_array($GLOBALS['TL_DCA']['tl_nc_message']['fields']['published']['save_callback'])) {
if (is_array($GLOBALS['TL_DCA']['tl_nc_message']['fields']['published']['save_callback'] ?? null)) {
foreach ($GLOBALS['TL_DCA']['tl_nc_message']['fields']['published']['save_callback'] as $callback) {
if (is_array($callback)) {
$blnVisible = \System::importStatic($callback[0])->{$callback[1]}($blnVisible, $this);
Expand Down

0 comments on commit bd923f0

Please sign in to comment.