From 0d4cd6a0be05ead22797a6de796a2483d96d6e53 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 21 Jul 2020 07:17:19 +0200 Subject: [PATCH] check if converters['preview'] exists --- out/out.ApprovalSummary.php | 2 +- out/out.DocumentVersionDetail.php | 2 +- out/out.ManageNotify.php | 2 +- out/out.MyDocuments.php | 2 +- out/out.ObjectCheck.php | 2 -- out/out.ReceiptSummary.php | 2 +- out/out.ReviewSummary.php | 2 +- out/out.RevisionSummary.php | 2 +- out/out.Search.php | 2 +- out/out.TransmittalMgr.php | 2 +- out/out.WorkflowSummary.php | 2 +- 11 files changed, 10 insertions(+), 12 deletions(-) diff --git a/out/out.ApprovalSummary.php b/out/out.ApprovalSummary.php index 70b4e413c..e2c54d878 100644 --- a/out/out.ApprovalSummary.php +++ b/out/out.ApprovalSummary.php @@ -44,7 +44,7 @@ if($view) { $view->setParam('showtree', showtree()); $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('xsendfile', $settings->_enableXsendfile); diff --git a/out/out.DocumentVersionDetail.php b/out/out.DocumentVersionDetail.php index ef0372644..b578456ae 100644 --- a/out/out.DocumentVersionDetail.php +++ b/out/out.DocumentVersionDetail.php @@ -76,7 +76,7 @@ if($view) { $view->setParam('viewonlinefiletypes', $settings->_viewOnlineFileTypes); $view->setParam('enableversionmodification', $settings->_enableVersionModification); $view->setParam('previewWidthDetail', $settings->_previewWidthDetail); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('showFullPreview', $settings->_showFullPreview); $view->setParam('convertToPdf', $settings->_convertToPdf); $view->setParam('cachedir', $settings->_cacheDir); diff --git a/out/out.ManageNotify.php b/out/out.ManageNotify.php index d38ac4f4d..dfc4935e2 100644 --- a/out/out.ManageNotify.php +++ b/out/out.ManageNotify.php @@ -38,7 +38,7 @@ if ($user->isGuest()) { if($view) { $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('onepage', $settings->_onePageMode); // do most navigation by reloading areas of pages with ajax diff --git a/out/out.MyDocuments.php b/out/out.MyDocuments.php index e053511e4..7c1d1f4d2 100644 --- a/out/out.MyDocuments.php +++ b/out/out.MyDocuments.php @@ -64,7 +64,7 @@ if($view) { $view->setParam('workflowmode', $settings->_workflowMode); $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('xsendfile', $settings->_enableXsendfile); diff --git a/out/out.ObjectCheck.php b/out/out.ObjectCheck.php index 873a3aa41..f4514164e 100644 --- a/out/out.ObjectCheck.php +++ b/out/out.ObjectCheck.php @@ -239,8 +239,6 @@ if($view) { $view->setParam('rootfolder', $rootfolder); $view->setParam('repairobjects', $repairobjects); $view->setParam('cachedir', $settings->_cacheDir); - $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('previewWidthList', $settings->_previewWidthList); diff --git a/out/out.ReceiptSummary.php b/out/out.ReceiptSummary.php index 2d51e49e8..db3e4e26e 100644 --- a/out/out.ReceiptSummary.php +++ b/out/out.ReceiptSummary.php @@ -43,7 +43,7 @@ if($view) { $view->setParam('showtree', showtree()); $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('onepage', $settings->_onePageMode); // do most navigation by reloading areas of pages with ajax diff --git a/out/out.ReviewSummary.php b/out/out.ReviewSummary.php index 70b4e413c..e2c54d878 100644 --- a/out/out.ReviewSummary.php +++ b/out/out.ReviewSummary.php @@ -44,7 +44,7 @@ if($view) { $view->setParam('showtree', showtree()); $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('xsendfile', $settings->_enableXsendfile); diff --git a/out/out.RevisionSummary.php b/out/out.RevisionSummary.php index 91140afd7..1ebffba34 100644 --- a/out/out.RevisionSummary.php +++ b/out/out.RevisionSummary.php @@ -44,7 +44,7 @@ if($view) { $view->setParam('showtree', showtree()); $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('xsendfile', $settings->_enableXsendfile); diff --git a/out/out.Search.php b/out/out.Search.php index 6c982d910..b9e892250 100644 --- a/out/out.Search.php +++ b/out/out.Search.php @@ -501,7 +501,7 @@ if($settings->_showSingleSearchHit && count($entries) == 1) { $view->setParam('workflowmode', $settings->_workflowMode); $view->setParam('enablefullsearch', $settings->_enableFullSearch); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('xsendfile', $settings->_enableXsendfile); $view->setParam('reception', $reception); diff --git a/out/out.TransmittalMgr.php b/out/out.TransmittalMgr.php index 3ce4fd276..7d788635e 100644 --- a/out/out.TransmittalMgr.php +++ b/out/out.TransmittalMgr.php @@ -51,7 +51,7 @@ if($view) { $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('accessobject', $accessop); $view->setParam('onepage', $settings->_onePageMode); // do most navigation by reloading areas of pages with ajax $view($_GET); diff --git a/out/out.WorkflowSummary.php b/out/out.WorkflowSummary.php index d1dc2ac32..062765122 100644 --- a/out/out.WorkflowSummary.php +++ b/out/out.WorkflowSummary.php @@ -44,7 +44,7 @@ if($view) { $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('workflowmode', $settings->_workflowMode); $view->setParam('previewWidthList', $settings->_previewWidthList); - $view->setParam('previewconverters', $settings->_converters['preview']); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('xsendfile', $settings->_enableXsendfile);