Skip to content

Commit 1fe7e0f

Browse files
[BUGFIX] Add check for Array Key multiViewType as it is not mandatory in typoscript config (kitodo#1695)
Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
1 parent f0ed0f1 commit 1fe7e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controller/PageViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ protected function getFulltext(int $page): array
463463
*/
464464
protected function addViewerJS(): void
465465
{
466-
if ($this->settings['multiViewType'] && is_array($this->documentArray) && count($this->documentArray) > 1) {
466+
if (!empty($this->settings['multiViewType']) && is_array($this->documentArray) && count($this->documentArray) > 1) {
467467
$jsViewer = 'tx_dlf_viewer = [];';
468468
$i = 0;
469469
foreach ($this->documentArray as $document) {

0 commit comments

Comments
 (0)