From: Anthony Talarico Date: Fri, 13 Jan 2017 14:36:40 +0000 (-0500) Subject: setting the csv importer author to glmdev if the old user doesn't exist X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=329cc53a2c6efff7ca0c7e87813aba07366cd910;p=WP-Plugins%2Fglm-member-db.git setting the csv importer author to glmdev if the old user doesn't exist --- diff --git a/models/admin/management/csvimport.php b/models/admin/management/csvimport.php index be77d869..6e0cd7b2 100644 --- a/models/admin/management/csvimport.php +++ b/models/admin/management/csvimport.php @@ -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'];