Skip to content
Snippets Groups Projects
Commit 4294987e authored by Alex Barth's avatar Alex Barth
Browse files

#758664: Fix regression introduced with #740962.

parent 646d729b
No related branches found
No related tags found
No related merge requests found
// $Id$
Feeds 6.x 1.0 Alpha 14, 2010-04-11
----------------------------------
- #758664: Fix regression introduced with #740962.
Feeds 6.x 1.0 Alpha 13, 2010-03-30
----------------------------------
......
......@@ -292,6 +292,10 @@ function feeds_nodeapi(&$node, $op, $form) {
break;
case 'insert':
case 'update':
// A node may not have been validated, make sure $node_feeds is present.
if (empty($node_feeds)) {
$node_feeds = $node->feeds;
}
// Add configuration to feed source and save.
$source = feeds_source($importer_id, $node->nid);
$source->addConfig($node_feeds);
......@@ -307,7 +311,7 @@ function feeds_nodeapi(&$node, $op, $form) {
// Add expiry to schedule, in case this is the first feed of this
// configuration.
feeds_scheduler()->add($importer_id, 'expire');
unset($node_feeds);
$node_feeds = NULL;
break;
case 'delete':
// Remove feed from scheduler and delete source.
......
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