setting the csv importer author to glmdev if the old user doesn't exist
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 13 Jan 2017 14:36:40 +0000 (09:36 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 13 Jan 2017 14:36:40 +0000 (09:36 -0500)
models/admin/management/csvimport.php

index be77d86..6e0cd7b 100644 (file)
@@ -174,7 +174,7 @@ class GlmMembersAdmin_management_csvimport
                     $new_id         = get_user_by('slug',$name);
                     $post_author    = $new_id->ID;
                 } else {
-                    $post_author    = $fd['PostedBy'];
+                    $post_author    = 1;
                 }
                 $old_post_id        = $fd['MessageID'];
                 $post_content       = $fd['Message'];