Fixed SQL statement (missing quotes) reported by Martin Erichsen.
authorRobert Lemke <robert.lemke@typo3.org>
Fri, 19 Mar 2004 10:32:16 +0000 (10:32 +0000)
committerRobert Lemke <robert.lemke@typo3.org>
Fri, 19 Mar 2004 10:32:16 +0000 (10:32 +0000)
See: http://typo3.org/1422+M55c87d9b3b8.0.html

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@135 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_dmailer.php

index 9938917..26b1e61 100755 (executable)
@@ -331,7 +331,7 @@ class t3lib_dmailer extends t3lib_htmlmail {
                                        } else {
                                                $idList = implode(',',$listArr);
                                                if ($idList)    {
-                                                       $query='SELECT '.$table.'.* FROM $table WHERE uid IN ('.$idList.') AND uid NOT IN ('.($sendIds?$sendIds:0).') AND '.($enableFields[$table]?$enableFields[$table]:'1=1').' LIMIT '.($this->sendPerCycle+1);
+                                                       $query='SELECT '.$table.'.* FROM '.$table.' WHERE uid IN ('.$idList.') AND uid NOT IN ('.($sendIds?$sendIds:0).') AND '.($enableFields[$table]?$enableFields[$table]:'1=1').' LIMIT '.($this->sendPerCycle+1);
                                                        $res=mysql(TYPO3_db,$query);
                                                        if (mysql_error())      {die (mysql_error());}
                                                        while($recipRow=mysql_fetch_assoc($res))        {