Skip to content

Commit bd9fd60

Browse files
authored
fix warning
1 parent 451917a commit bd9fd60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Backend/Callbacks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public static function addColorizeJs($objRow, $strBuffer, $objElement)
229229
if (TL_MODE == 'BE' && ($objRow->type == 'sHtml5Start' || $objRow->type == 'sHtml5End')) {
230230
//get the color of the parent start-tag or rotate the color
231231
if ($objRow->type == 'sHtml5End') {
232-
$color = self::$elementColors[$objRow->sh5_pid];
232+
$color = self::$elementColors[$objRow->sh5_pid] ?? null;
233233
} else {
234234
$color = Helper::rotateColor();
235235
self::$elementColors[$objRow->id] = $color;

0 commit comments

Comments
 (0)