Skip to content

Commit 9252f55

Browse files
tubamanmichield
authored andcommitted
Issue phpList#59 - Fix incorrect SQL statement parameter (phpList#60)
The SQL parameter should be embargo instead of sendstart.
1 parent afdafe0 commit 9252f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/restapi/includes/campaigns.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static function campaignUpdate($id = 0)
162162
if ($id == 0) {
163163
$id = $_REQUEST['id'];
164164
}
165-
$sql = 'UPDATE '.$GLOBALS['tables']['message'].' SET subject=:subject, fromfield=:fromfield, replyto=:replyto, message=:message, textmessage=:textmessage, footer=:footer, status=:status, sendformat=:sendformat, template=:template, sendstart=:sendstart, rsstemplate=:rsstemplate, owner=:owner, htmlformatted=:htmlformatted WHERE id=:id;';
165+
$sql = 'UPDATE '.$GLOBALS['tables']['message'].' SET subject=:subject, fromfield=:fromfield, replyto=:replyto, message=:message, textmessage=:textmessage, footer=:footer, status=:status, sendformat=:sendformat, template=:template, embargo=:embargo, rsstemplate=:rsstemplate, owner=:owner, htmlformatted=:htmlformatted WHERE id=:id;';
166166
try {
167167
$db = PDO::getConnection();
168168
$stmt = $db->prepare($sql);

0 commit comments

Comments
 (0)