Commit 30c35c22 authored by Eric Windham's avatar Eric Windham

fixed another delete statement to use prepare

parent 83936efa
......@@ -287,7 +287,7 @@ class NF_Admin_Processes_ChunkPublish extends NF_Abstracts_BatchProcess
// If our form_id was a temp id...
if ( ! is_numeric( $this->form_id ) ) {
// Remove all of our chunk options.
$sql = "DELETE FROM `" . $wpdb->prefix . "nf3_chunks` WHERE name LIKE 'nf_form_" . $this->form_id . "_publishing_%'";
$sql = $wpdb->prepare( "DELETE FROM `" . $wpdb->prefix . "nf3_chunks` WHERE name LIKE %s", 'nf_form_' . $this->form_id . '_publishing_%' );
$wpdb->query( $sql );
}
$this->data[ 'new_publish' ] = 'false';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment