Skip to content

Commit

Permalink
Issue #59 - Fix incorrect SQL statement parameter (#60)
Browse files Browse the repository at this point in the history
The SQL parameter should be embargo instead of sendstart.
  • Loading branch information
tubaman authored and michield committed Aug 13, 2017
1 parent afdafe0 commit 9252f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/restapi/includes/campaigns.php
Expand Up @@ -162,7 +162,7 @@ public static function campaignUpdate($id = 0)
if ($id == 0) {
$id = $_REQUEST['id'];
}
$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;';
$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;';
try {
$db = PDO::getConnection();
$stmt = $db->prepare($sql);
Expand Down

0 comments on commit 9252f55

Please sign in to comment.