From 9cc583c47bae16449d3d822e8b94914b1d9e080c Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 26 Apr 2017 10:27:25 +0000 Subject: [PATCH] Archives: regression (warning during the setup) SVN:trunk[4693] --- application/ajaxwebpage.class.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/ajaxwebpage.class.inc.php b/application/ajaxwebpage.class.inc.php index 15bd06a28..80981b5a3 100644 --- a/application/ajaxwebpage.class.inc.php +++ b/application/ajaxwebpage.class.inc.php @@ -54,9 +54,12 @@ class ajax_page extends WebPage implements iTabbedPage $this->sContentDisposition = 'inline'; $this->m_sMenu = ""; - $bArchiveMode = utils::IsArchiveMode(); - DBSearch::SetArchiveModeDefault($bArchiveMode); - if ($bArchiveMode) MetaModel::DBSetReadOnly(); + if (class_exists('DBSearch')) // This class does not exist in the contect of the setup page + { + $bArchiveMode = utils::IsArchiveMode(); + DBSearch::SetArchiveModeDefault($bArchiveMode); + if ($bArchiveMode) MetaModel::DBSetReadOnly(); + } } public function AddTabContainer($sTabContainer, $sPrefix = '')