$profileId = get_query_var('profile', '');
if ( $profileId = filter_var( $profileId, FILTER_VALIDATE_INT ) ) {
- echo '<pre>$profileId: ' . print_r( $profileId, true ) . '</pre>';
$memberData = $this->getEntry( $profileId );
} else {
// Find the active member info record and get it with main member data
require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php';
$Images = new GlmDataImages($this->wpdb, $this->config);
$imageGallery = $Images->getGallery($this->config['ref_type_numb']['MemberInfo'], $memberData['id']);
-
+
// Also, if this is not a create, get any files
require_once GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataFiles.php';
$Files = new GlmDataFiles( $this->wpdb, $this->config );