소스 검색

Archives: regression (warning during the setup)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4693 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 년 전
부모
커밋
b926cb0127
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      application/ajaxwebpage.class.inc.php

+ 6 - 3
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 = '')