From a7dc526d8adc1b3044e8026a942af3fdcf5033ef Mon Sep 17 00:00:00 2001
From: Steve Sutton $options_data: logo ' . print_r( $options_data['logo'], true ) . '
';
+ } else if ( $options_data['image'] ) {
+ // echo '$options_data: image ' . print_r( $options_data['image'], true ) . '
';
+ }
+ $memberInfoId = $this->wpdb->get_var(
+ $this->wpdb->prepare(
+ "SELECT logo
+ FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_info
+ WHERE member = ( SELECT id
+ FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "members
+ HERE old_member_id = %d
+ )",
+ $member['id']
+ )
+ );
+ echo '$memberInfoId: ' . print_r( $memberInfoId, true ) . '
';
+ // $email = '';
+ // if ( is_array( $options_data ) ) {
+ // reset( $options_data );
+ // $eData = current( $options_data );
+ // $email = $eData['address'];
+ // }
+ // if ( $email ) {
+ // $this->wpdb->query(
+ // $this->wpdb->prepare(
+ // "UPDATE " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_info
+ // SET email = %s
+ // WHERE member = ( SELECT id
+ // FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "members
+ // WHERE old_member_id = %d
+ // )",
+ // $email,
+ // $member['id']
+ // )
+ // );
+ // }
+ }
+ break;
+
case 'import_connections':
// Load Member Info Data Class and get info data for later use
diff --git a/views/admin/management/development.html b/views/admin/management/development.html
index eed511f9..4360e604 100644
--- a/views/admin/management/development.html
+++ b/views/admin/management/development.html
@@ -13,6 +13,10 @@
Update Emails for Connection Import