summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordooug2013-01-17 23:43:04 (GMT)
committer Chris Leppanen2013-01-17 23:43:04 (GMT)
commit3b5129233c389ac8fbf497354523985fd4e29b86 (patch)
treec057f3cfcb0d0fa11c6760283ba896fc1c0fdea0
parent1cf6f930a7c896d1a82d17319af1409c1405ba94 (diff)
Issue #1156982 by dooug, dotman: Fixed SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'last_comment_uid()' at row 1.
-rw-r--r--plugins/FeedsNodeProcessor.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc
index 01642e4..cc8619e 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) {