Skip to content
Snippets Groups Projects
Commit 255005b7 authored by git's avatar git Committed by Chris Leppanen
Browse files

Issue #1213472 by paulgemini, Nigel_S, emarchak, Jorenm: Fixed Unsupported...

Issue #1213472 by paulgemini, Nigel_S, emarchak, Jorenm: Fixed Unsupported operand types in FeedsConfigurable.
parent 5fbf8ae1
No related branches found
No related tags found
No related merge requests found
...@@ -572,7 +572,7 @@ function feeds_node_presave($node) { ...@@ -572,7 +572,7 @@ function feeds_node_presave($node) {
function feeds_node_insert($node) { function feeds_node_insert($node) {
// Source attached to node. // Source attached to node.
feeds_node_update($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); $source = feeds_source($importer_id, $node->nid);
// Start import if requested. // Start import if requested.
if (feeds_importer($importer_id)->config['import_on_create'] && !isset($node->feeds['suppress_import'])) { if (feeds_importer($importer_id)->config['import_on_create'] && !isset($node->feeds['suppress_import'])) {
...@@ -589,7 +589,7 @@ function feeds_node_insert($node) { ...@@ -589,7 +589,7 @@ function feeds_node_insert($node) {
*/ */
function feeds_node_update($node) { function feeds_node_update($node) {
// Source attached to 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 = feeds_source($importer_id, $node->nid);
$source->addConfig($node->feeds); $source->addConfig($node->feeds);
$source->save(); $source->save();
......
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