diff --git a/feeds.module b/feeds.module index 52fddb9619f001b2dd110f57bdb9f45732982b91..3ddcfecf749e792efbc2631609faa75c4eca1fad 100644 --- a/feeds.module +++ b/feeds.module @@ -248,16 +248,16 @@ function feeds_nodeapi(&$node, $op, $form) { try { $source->addConfig($node->feeds); // @todo Too many indirections. Clean up. - $feed = $source->importer->fetcher->fetch($source); - $source->importer->parser->parse($feed, $source); - if (!$feed->getTitle()) { + $batch = $source->importer->fetcher->fetch($source); + $source->importer->parser->parse($batch, $source); + if (!$batch->getTitle()) { form_set_error('title', t('Could not retrieve title from feed.'), 'error'); } else { // Keep the title in a static cache and populate $node->title on // 'presave' as node module looses any changes to $node after // 'validate'. - $last_title = $feed->getTitle(); + $last_title = $batch->getTitle(); } } catch (Exception $e) {