Skip to content

Commit

Permalink
[BUGFIX] Fix usage of $this->settings['basketButton'] (#1230)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 30, 2024
1 parent 85e2908 commit 9d6c709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Controller/TableOfContentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private function getMenuEntry(array $entry, bool $recursive = false): array
$entryArray['page'] = $entry['points'];

$entryArray['doNotLinkIt'] = 0;
if ($this->settings['basketButton']) {
if (isset($this->settings['basketButton'])) {
$entryArray['basketButton'] = [
'logId' => $entry['id'],
'startpage' => $entry['points']
Expand All @@ -152,7 +152,7 @@ private function getMenuEntry(array $entry, bool $recursive = false): array
$entryArray['id'] = $entry['points'];
$entryArray['page'] = 1;
$entryArray['doNotLinkIt'] = 0;
if ($this->settings['basketButton']) {
if (isset($this->settings['basketButton'])) {
$entryArray['basketButton'] = [
'logId' => $entry['id'],
'startpage' => $entry['points']
Expand All @@ -162,7 +162,7 @@ private function getMenuEntry(array $entry, bool $recursive = false): array
$entryArray['id'] = $entry['targetUid'];
$entryArray['page'] = 1;
$entryArray['doNotLinkIt'] = 0;
if ($this->settings['basketButton']) {
if (isset($this->settings['basketButton'])) {
$entryArray['basketButton'] = [
'logId' => $entry['id'],
'startpage' => $entry['targetUid']
Expand Down

0 comments on commit 9d6c709

Please sign in to comment.