[BUGFIX] Wrong output in fulltext field 26/37326/2
authorFrancois Suter <francois@typo3.org>
Fri, 27 Feb 2015 16:51:46 +0000 (17:51 +0100)
committerFrancois Suter <francois@typo3.org>
Fri, 27 Feb 2015 16:53:21 +0000 (17:53 +0100)
Wrong preparation of output for the custom TCA fulltext field
causes PHP warnings.

Resolves: #65409
Releases: 1.11
Change-Id: Ifa19034eaeba4efc34052f32743e182f6ab8ebef
Reviewed-on: http://review.typo3.org/37326
Reviewed-by: Francois Suter <francois@typo3.org>
Tested-by: Francois Suter <francois@typo3.org>
ChangeLog
Classes/Userfunc/FormEngine.php

index ede236f..1bd5c0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-27 Francois Suter (Cobweb)  <typo3@cobweb.ch>
+
+       * Fixed wrong output in custom fulltext field, resolves #65409
+
 2015-02-11 Francois Suter (Cobweb)  <typo3@cobweb.ch>
 
        * Released to TER as version 1.11.0, resolves #65008
index 91a8af2..18ce1a7 100644 (file)
@@ -127,6 +127,7 @@ class Tx_Dataquery_Userfunc_FormEngine {
         * @return string
         */
        protected function getMessageNoIndexFound() {
+               $outputs = array();
 
                $string = $this->language->sL('LLL:EXT:dataquery/locallang_db.xlf:fulltext.no_index');
                $outputs[] = sprintf($string, $this->table);
@@ -137,7 +138,7 @@ class Tx_Dataquery_Userfunc_FormEngine {
                        $string = $this->language->sL('LLL:EXT:dataquery/locallang_db.xlf:fulltext.tables_list');
                        $outputs[] = sprintf($string, $listOfTables);
                } else {
-                       $outputs = $this->language->sL('LLL:EXT:dataquery/locallang_db.xlf:fulltext.no_table_found');
+                       $outputs[] = $this->language->sL('LLL:EXT:dataquery/locallang_db.xlf:fulltext.no_table_found');
                }
                return implode('<br>', $outputs);
        }