From: Steve Sutton Date: Thu, 3 May 2018 20:40:09 +0000 (-0400) Subject: Update for check member X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=82b5a5089b5634b22957c46d0e31befe20e6eacd;p=user%2Fsteve%2Fglm-member-db-migcsa.git Update for check member show array of non displayed ones. --- diff --git a/models/admin/migcsa/index.php b/models/admin/migcsa/index.php index 210c762..a5a6cbf 100644 --- a/models/admin/migcsa/index.php +++ b/models/admin/migcsa/index.php @@ -205,6 +205,7 @@ class GlmMembersAdmin_migcsa_index public function checkMembers() { + $ups = array(); // Get a list of pending or active members $accounts = $this->wpdb->get_results( "SELECT id,ref_dest,renewal_date @@ -222,9 +223,13 @@ class GlmMembersAdmin_migcsa_index $account['ref_dest'] ) ); - echo '
$access: ' . print_r( $access, true ) . '
'; + if ( $access == 35 ) { + $ups[] = $account['id']; + } + //echo '
$account: ' . print_r( $account, true ) . '
'; + //echo '
$access: ' . print_r( $access, true ) . '
'; } - return 'test';//'
$accounts: ' . print_r( $accounts, true ) . '
'; + return '
$ups: ' . print_r( $ups, true ) . '
'; } public function updateCustomFieldEmails()