Fixed bug #6252: rteHTMLarea acronyms are not DBAL compatible
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 6 Oct 2007 21:45:19 +0000 (21:45 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 6 Oct 2007 21:45:19 +0000 (21:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2534 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php

index 31da64e..3b219af 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 
        * Fixed bug #6462: Wrong default locale charset on Windows
        * Fixed bug #6032: Freeing SQL result sets
+       * Fixed bug #6252: rteHTMLarea acronyms are not DBAL compatible
 
 2007-10-01  Bernhard Kraft  <kraftb@kraftb.at>
 
index 9dcc707..6cba210 100644 (file)
@@ -1563,9 +1563,9 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
                $JSAbbreviationArray .= 'abbreviations = { ' . $linebreak;
                $table = 'tx_rtehtmlarea_acronym';
                if($this->contentLanguageUid > -1) {
-                       $whereClause = '(sys_language_uid="'.$this->contentLanguageUid . '" OR sys_language_uid="-1")';
+                       $whereClause = '(sys_language_uid='.$this->contentLanguageUid . ' OR sys_language_uid=-1)';
                } else {
-                       $whereClause = '1 = 1';
+                       $whereClause = '1=1';
                }
                $whereClause .= t3lib_BEfunc::BEenableFields($table);
                $whereClause .= t3lib_BEfunc::deleteClause($table);