Browse Source

Fix ZF-12193: "Constant already defined" notice emitted from Zend_Service_Lucene.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24847 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob 13 years ago
parent
commit
8f179091bb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      library/Zend/Search/Lucene/Analysis/Analyzer/Common.php

+ 3 - 1
library/Zend/Search/Lucene/Analysis/Analyzer/Common.php

@@ -23,7 +23,9 @@
 
 /** Define constant used to provide correct file processing order    */
 /** @todo Section should be removed with ZF 2.0 release as obsolete  */
-define('ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED', true);
+if (!defined('ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED')) {
+    define('ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED', true);
+}
 
 
 /** Zend_Search_Lucene_Analysis_Analyzer */