From 255005b78d150b980883bbf5c1a50a67913fe83f Mon Sep 17 00:00:00 2001 From: git <git@1335074.no-reply.drupal.org> Date: Fri, 20 Apr 2012 10:44:05 -0700 Subject: [PATCH] Issue #1213472 by paulgemini, Nigel_S, emarchak, Jorenm: Fixed Unsupported operand types in FeedsConfigurable. --- feeds.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feeds.module b/feeds.module index 420c6b55..769fe427 100644 --- a/feeds.module +++ b/feeds.module @@ -572,7 +572,7 @@ function feeds_node_presave($node) { function feeds_node_insert($node) { // Source attached to node. feeds_node_update($node); - if ($importer_id = feeds_get_importer_id($node->type)) { + if (isset($node->feeds) && $importer_id = feeds_get_importer_id($node->type)) { $source = feeds_source($importer_id, $node->nid); // Start import if requested. if (feeds_importer($importer_id)->config['import_on_create'] && !isset($node->feeds['suppress_import'])) { @@ -589,7 +589,7 @@ function feeds_node_insert($node) { */ function feeds_node_update($node) { // Source attached to node. - if ($importer_id = feeds_get_importer_id($node->type)) { + if (isset($node->feeds) && $importer_id = feeds_get_importer_id($node->type)) { $source = feeds_source($importer_id, $node->nid); $source->addConfig($node->feeds); $source->save(); -- GitLab