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 Jun 28, 2022
1 parent c3f24be commit 6460e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/NotificationCenter/AutoSuggester.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function load($dc)
public function init(\DataContainer $dc)
{
$strGroup = NotificationModel::findGroupForType(static::$strType);
$arrTokens = $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE'][$strGroup][static::$strType][$dc->field];
$arrTokens = $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE'][$strGroup][static::$strType][$dc->field] ?? [];
$arrTokens = array_merge((array) $arrTokens, $this->loadTemplateTokens());

if (!is_array($arrTokens) || empty($arrTokens)) {
Expand Down

0 comments on commit 6460e00

Please sign in to comment.