From: Steve Sutton Date: Mon, 12 Feb 2018 18:45:33 +0000 (-0500) Subject: Correcting ref_type X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=4ba4fc4589c5b9520b75a9aa5448e83a3742de49;p=WP-Plugins%2Fglm-member-db-social.git Correcting ref_type Should be matching the ref_type of member not member info. --- diff --git a/models/admin/social/index.php b/models/admin/social/index.php index e132a03..2273bb5 100644 --- a/models/admin/social/index.php +++ b/models/admin/social/index.php @@ -116,8 +116,8 @@ class GlmMembersAdmin_social_index extends GlmDataSocialUrls } // *** Note that ref_type should be Member (10) rather than MemberInfo(20), but this works *** - $socialWhereT = 'T.ref_type = '.$this->config['ref_type_numb']['MemberInfo'].' AND T.ref_dest = '.$memberID; - $socialWhere = 'ref_type = '.$this->config['ref_type_numb']['MemberInfo'].' AND ref_dest = '.$memberID; + $socialWhereT = 'T.ref_type = '.$this->config['ref_type_numb']['Member'].' AND T.ref_dest = '.$memberID; + $socialWhere = 'ref_type = '.$this->config['ref_type_numb']['Member'].' AND ref_dest = '.$memberID; // Get the base member data require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';