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

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

t3lib/class.t3lib_dmailer.php

index 26b1e61..0656496 100755 (executable)
@@ -264,7 +264,7 @@ class t3lib_dmailer extends t3lib_htmlmail {
                $tKey = substr($table,0,1);
                $begin=intval($this->dmailer_howManySendMails($mid,$tKey));
                if ($query_info[$table])        {
-                       $query='SELECT '.$table.'.* FROM $table WHERE '.$enableFields[$table].' AND ('.$query_info[$table].') ORDER BY tstamp DESC LIMIT '.intval($begin).','.$this->sendPerCycle; // This way, we select newest edited records first. So if any record is added or changed in between, it'll end on top and do no harm
+                       $query='SELECT '.$table.'.* FROM '.$table.' WHERE '.$enableFields[$table].' AND ('.$query_info[$table].') ORDER BY tstamp DESC LIMIT '.intval($begin).','.$this->sendPerCycle; // This way, we select newest edited records first. So if any record is added or changed in between, it'll end on top and do no harm
                        $res=mysql(TYPO3_db,$query);
                        if (mysql_error())      {
                                die (mysql_error());
@@ -512,4 +512,4 @@ class t3lib_dmailer extends t3lib_htmlmail {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_dmailer.php'])  {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_dmailer.php']);
 }
-?>
\ No newline at end of file
+?>