Update for social import
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Feb 2018 21:31:34 +0000 (16:31 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Feb 2018 21:31:34 +0000 (16:31 -0500)
was missing case for rss.

models/admin/import/social.php

index 7f9263c..5cd2c22 100644 (file)
@@ -386,6 +386,18 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index
                                     $dataFormat
                                 );
                             }
+                            if ($member['rss']) {
+                                $newId = $this->wpdb->insert(
+                                    $dataTable,
+                                    array(
+                                        'url'      => $member['rss'],
+                                        'ref_type' => $this->config['ref_type_numb']['MemberInfo'],
+                                        'ref_dest' => $memberId,
+                                        'social'   => 12
+                                    ),
+                                    $dataFormat
+                                );
+                            }
                         }
                     }