#933306: Fix Feeds creates subscriptions for not existing importers.
authorAlex Barth
Mon, 25 Oct 2010 22:16:54 +0000 (22:16 +0000)
committerAlex Barth
Mon, 25 Oct 2010 22:16:54 +0000 (22:16 +0000)
CHANGELOG.txt
feeds.pages.inc

index cac1a9a..989c560 100644 (file)
@@ -3,6 +3,7 @@
 Feeds 7.x 2.0 XXXXXXXXXXXXXXXXXXX
 ---------------------------------
 
+- #933306 alex_b: Fix Feeds creates subscriptions for not existing importers.
 - #946822 twistor: FeedsSitemapParser broken: Serialization of
   'SimpleXMLElement' is not allowed.
 - #949916 alex_b: Convert values mapped to user->created.
index ecf8bb6..8d72d2a 100644 (file)
@@ -187,7 +187,10 @@ function feeds_delete_tab_form_submit($form, &$form_state) {
  */
 function feeds_fetcher_callback($importer, $feed_nid = 0) {
   if ($importer instanceof FeedsImporter) {
-    return $importer->fetcher->request($feed_nid);
+    try {
+      return $importer->fetcher->request($feed_nid);
+    }
+    catch(Exception $e) {}
   }
   drupal_access_denied();
 }