Skip to content

Commit

Permalink
copage: fixed Undefined array key
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Nov 25, 2024
1 parent 5cd1038 commit 21c33d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ public function getStyleInput(): ilAdvSelectInputGUI

$chars = $this->getCharacteristics();
if (is_object($this->content_obj)) {
if ($chars[$selected] == "" && ($this->content_obj->getClass() != "")) {
if (($chars[$selected] ?? "") == "" && ($this->content_obj->getClass() != "")) {
$chars = array_merge(
array($this->content_obj->getClass() => $this->content_obj->getClass()),
$chars
Expand Down

0 comments on commit 21c33d0

Please sign in to comment.