Skip to content

Commit 21c33d0

Browse files
committed
copage: fixed Undefined array key
1 parent 5cd1038 commit 21c33d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Services/COPage/PC/MediaObject/class.ilPCMediaObjectGUI.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ public function getStyleInput(): ilAdvSelectInputGUI
13201320

13211321
$chars = $this->getCharacteristics();
13221322
if (is_object($this->content_obj)) {
1323-
if ($chars[$selected] == "" && ($this->content_obj->getClass() != "")) {
1323+
if (($chars[$selected] ?? "") == "" && ($this->content_obj->getClass() != "")) {
13241324
$chars = array_merge(
13251325
array($this->content_obj->getClass() => $this->content_obj->getClass()),
13261326
$chars

0 commit comments

Comments
 (0)