Skip to content

Commit de1d690

Browse files
committed
update_db_procedure_to_0_7_0 missing (and not missing) $wpdb->prepare
1 parent c77fbfe commit de1d690

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

engine/CF7_AntiSpam_Updater.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public function update_db_procedure_to_0_7_0() {
106106

107107
// Check if the 'modified' column exists, if not add it
108108
$sql_check_modified = $wpdb->prepare(
109-
"SHOW COLUMNS FROM `{$table_blacklist}` LIKE %s",
109+
"SHOW COLUMNS FROM %s LIKE %s",
110+
$table_blacklist,
110111
'modified'
111112
);
112113
if ( ! $wpdb->get_var( $sql_check_modified ) ) {
@@ -125,7 +126,8 @@ public function update_db_procedure_to_0_7_0() {
125126

126127
// Check if the 'created' column exists, if not add it
127128
$sql_check_created = $wpdb->prepare(
128-
"SHOW COLUMNS FROM `{$table_blacklist}` LIKE %s",
129+
"SHOW COLUMNS FROM %s LIKE %s",
130+
$table_blacklist,
129131
'created'
130132
);
131133
if ( ! $wpdb->get_var( $sql_check_created ) ) {

0 commit comments

Comments
 (0)