#293614 by mustafu: avoid reporting two error messages when feed parse errors occur...
authorGábor Hojtsy
Fri, 28 May 2010 16:06:59 +0000 (16:06 +0000)
committerGábor Hojtsy
Fri, 28 May 2010 16:06:59 +0000 (16:06 +0000)
modules/aggregator/aggregator.module

index 91b509f..2c0661e 100644 (file)
@@ -640,10 +640,8 @@ function aggregator_refresh($feed) {
 
         watchdog('aggregator', 'There is new syndicated content from %site.', array('%site' => $feed['title']));
         drupal_set_message(t('There is new syndicated content from %site.', array('%site' => $feed['title'])));
-        break;
       }
-      $result->error = t('feed not parseable');
-      // Deliberate no break.
+      break;
     default:
       watchdog('aggregator', 'The feed from %site seems to be broken, due to "%error".', array('%site' => $feed['title'], '%error' => $result->code .' '. $result->error), WATCHDOG_WARNING);
       drupal_set_message(t('The feed from %site seems to be broken, because of error "%error".', array('%site' => $feed['title'], '%error' => $result->code .' '. $result->error)));