// Get contact's list of members they can manage
$contactMembersList = get_user_meta($this->wpUserID, 'glmMembersContactMembers', true);
+ if ( $contactMembersList ) {
- // Get a list of contact members with names and other basic info from the list of ids
- $contactMembers = $this->Members->getIdName("ID in (".$contactMembersList.")");
+ // Get a list of contact members with names and other basic info from the list of ids
+ $contactMembers = $this->Members->getIdName("ID in (".$contactMembersList.")");
- // Generate MD5 check string for each member ID
- foreach ($contactMembers as $key => $value) {
- $contactMembers[$key]['idCheck'] = md5(GLM_MEMBERS_CONTACTS_MD5_SECRET.$value['id']);
+ // Generate MD5 check string for each member ID
+ foreach ($contactMembers as $key => $value) {
+ $contactMembers[$key]['idCheck'] = md5(GLM_MEMBERS_CONTACTS_MD5_SECRET.$value['id']);
+ }
}
}
}
}
-?>
\ No newline at end of file
+?>