Update for check member
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 3 May 2018 20:40:09 +0000 (16:40 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 3 May 2018 20:40:09 +0000 (16:40 -0400)
show array of non displayed ones.

models/admin/migcsa/index.php

index 210c762..a5a6cbf 100644 (file)
@@ -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 '<pre>$access: ' . print_r( $access, true ) . '</pre>';
+           if ( $access == 35 ) {
+               $ups[] = $account['id'];
+           }
+            //echo '<pre>$account: ' . print_r( $account, true ) . '</pre>';
+            //echo '<pre>$access: ' . print_r( $access, true ) . '</pre>';
         }
-        return 'test';//'<pre>$accounts: ' . print_r( $accounts, true ) . '</pre>';
+        return '<pre>$ups: ' . print_r( $ups, true ) . '</pre>';
     }
 
     public function updateCustomFieldEmails()