From 2b1ff6378cb4c6d84a469c8c0285df2de85ce55e Mon Sep 17 00:00:00 2001
From: Chris Leppanen <chris.leppanen@gmail.com>
Date: Thu, 24 Jan 2013 12:52:27 -0800
Subject: [PATCH] Fix uid validation for Node processor.

---
 plugins/FeedsNodeProcessor.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc
index cc8619e0..f2db5963 100644
--- a/plugins/FeedsNodeProcessor.inc
+++ b/plugins/FeedsNodeProcessor.inc
@@ -114,7 +114,7 @@ class FeedsNodeProcessor extends FeedsProcessor {
    * Validates a node.
    */
   protected function entityValidate($entity) {
-    if (empty($entity->uid)) {
+    if (!isset($entity->uid) || !is_numeric($entity->uid)) {
        $entity->uid = $this->config['author'];
     }
   }
-- 
GitLab