From 12a6083cd5607f6b5b7aa2b4398961c8b66e34ee Mon Sep 17 00:00:00 2001
From: dooug <dooug@417693.no-reply.drupal.org>
Date: Mon, 14 Jan 2013 12:03:18 -0500
Subject: [PATCH] Issue #1156982 by dooug: Ensure uid is set on comment
 creation.

---
 plugins/FeedsNodeProcessor.inc |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc
index 01642e4..4bd8863 100644
--- a/plugins/FeedsNodeProcessor.inc
+++ b/plugins/FeedsNodeProcessor.inc
@@ -111,6 +111,15 @@ class FeedsNodeProcessor extends FeedsProcessor {
   }
 
   /**
+   * Validates a node
+   */
+  protected function entityValidate($entity) {
+    if (empty($entity->uid)) {
+       $entity->uid = $this->config['author'];
+    }
+  }
+
+  /**
    * Save a node.
    */
   public function entitySave($entity) {
-- 
1.7.9.5

