Only list field types that are not strings. see #7171

git-svn-id: https://develop.svn.wordpress.org/trunk@10726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-03-06 01:06:00 +00:00
parent f6001bffe8
commit a746eb920a
2 changed files with 8 additions and 7 deletions
-2
View File
@@ -718,7 +718,6 @@ class wpdb {
$formatted_fields[] = $form;
}
$sql = "INSERT INTO $table (`" . implode( '`,`', $fields ) . "`) VALUES ('" . implode( "','", $formatted_fields ) . "')";
error_log($sql);
return $this->query( $this->prepare( $sql, $data) );
}
@@ -764,7 +763,6 @@ class wpdb {
}
$sql = "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres );
error_log($sql);
return $this->query( $this->prepare( $sql, array_merge(array_values($data), array_values($where))) );
}