Skip to content

Commit

Permalink
Merge pull request #73 from akroii/master
Browse files Browse the repository at this point in the history
Fix undefined array key issue
  • Loading branch information
kmielke authored Dec 21, 2023
2 parents f72cd12 + cd00484 commit e09c44f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Resources/contao/modules/ModuleCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public function generate()
->limit(1)->execute($cal);

$this->calConf[$cal]['calendar'] = $objBG->title;
$this->calConf[$cal]['background'] = $objBG->bg_color;
$this->calConf[$cal]['foreground'] = $objBG->fg_color;

if ($objBG->bg_color) {
list($cssColor, $cssOpacity) = deserialize($objBG->bg_color);
Expand Down
4 changes: 3 additions & 1 deletion src/Resources/contao/modules/ModuleEventlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public function generate()
->limit(1)->execute($cal);

$this->calConf[$cal]['calendar'] = $objBG->title;

$this->calConf[$cal]['background'] = $objBG->bg_color;
$this->calConf[$cal]['foreground'] = $objBG->fg_color;

if ($objBG->bg_color) {
list($cssColor, $cssOpacity) = deserialize($objBG->bg_color);

Expand Down

0 comments on commit e09c44f

Please sign in to comment.