? georss_fatal_error_on_rss_feed.patch ? nbproject Index: georss.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/georss/georss.module,v retrieving revision 1.9.2.2 diff -u -p -r1.9.2.2 georss.module --- georss.module 23 Jun 2009 19:57:06 -0000 1.9.2.2 +++ georss.module 6 Jul 2009 07:52:04 -0000 @@ -71,17 +71,21 @@ function georss_nodeapi($node, $op) { switch ($op) { case 'rss item': $items = array(); - $georss_settings = variable_get('georss_forms',''); - $lon = $node->$georss_settings['field_lon']; - $lat = $node->$georss_settings['field_lat']; - if (!is_null($node->$georss_settings['field_lon']) && !is_null($node->$georss_settings['field_lat'])) { - $items[] = theme_georss_point($lat['0']['value'], $lon['0']['value'], $georss_settings['format']); + $georss_settings = variable_get('georss_forms', FALSE); + if ($georss_settings !== FALSE) { + if (isset($node->$georss_settings['field_lat']) && isset($node->$georss_settings['field_lon'])) { + $lon = $node->$georss_settings['field_lon']; + $lat = $node->$georss_settings['field_lat']; + if (!is_null($node->$georss_settings['field_lon']) && !is_null($node->$georss_settings['field_lat'])) { + $items[] = theme_georss_point($lat['0']['value'], $lon['0']['value'], $georss_settings['format']); + } + + unset($node->content[$georss_settings['field_lon']]); + unset($node->content[$georss_settings['field_lat']]); + + return $items; + } } - - unset($node->content[$georss_settings['field_lon']]); - unset($node->content[$georss_settings['field_lat']]); - - return $items; break; } }