Skip to content
Snippets Groups Projects
Commit 2b1ff637 authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Fix uid validation for Node processor.

parent e619a8a8
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,7 @@ class FeedsNodeProcessor extends FeedsProcessor { ...@@ -114,7 +114,7 @@ class FeedsNodeProcessor extends FeedsProcessor {
* Validates a node. * Validates a node.
*/ */
protected function entityValidate($entity) { protected function entityValidate($entity) {
if (empty($entity->uid)) { if (!isset($entity->uid) || !is_numeric($entity->uid)) {
$entity->uid = $this->config['author']; $entity->uid = $this->config['author'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment