Skip to content

Commit

Permalink
Format string outside of prepare first
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Jan 3, 2014
1 parent a434dc0 commit cad0ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disqus/disqus.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function dsq_sync_comments($comments) {

// and follow up using legacy Disqus agent
if (!$commentdata) {
$commentdata = $wpdb->get_row($wpdb->prepare( "SELECT comment_ID, comment_parent FROM $wpdb->comments WHERE comment_agent = 'Disqus/1.0:%s' LIMIT 1", $comment->id), ARRAY_A);
$commentdata = $wpdb->get_row($wpdb->prepare( "SELECT comment_ID, comment_parent FROM $wpdb->comments WHERE comment_agent = %s LIMIT 1", 'Disqus/1.0:'.$comment->id), ARRAY_A);
}
if (!$commentdata) {
// Comment doesnt exist yet, lets insert it
Expand Down

0 comments on commit cad0ce2

Please sign in to comment.