From: Steve Sutton Date: Wed, 24 Jan 2018 14:12:35 +0000 (-0500) Subject: Update for field data type of the old_member_id. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=039fa167d669a2951d11cbfe536ba833553a0523;p=WP-Plugins%2Fglm-member-db-social.git Update for field data type of the old_member_id. Was switched to tinytext instead of the integer. Updating query prepare statement so it is matching the string. --- diff --git a/models/admin/import/social.php b/models/admin/import/social.php index fcf3c7c..0d510f0 100644 --- a/models/admin/import/social.php +++ b/models/admin/import/social.php @@ -241,7 +241,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $this->wpdb->prepare( "SELECT id FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "members - WHERE old_member_id = %d", + WHERE old_member_id = %s", $member['member_id'] ) );