switched is_numeric for isset in non-empty check to avoid empty strings, which can...
authorDavid Goode
Thu, 26 Aug 2010 20:38:04 +0000 (20:38 +0000)
committerDavid Goode
Thu, 26 Aug 2010 20:38:04 +0000 (20:38 +0000)
views/views_rss_views_fields.theme.inc

index 3bfd0a0..61b094b 100644 (file)
@@ -37,7 +37,7 @@ function template_preprocess_views_view_views_rss_fields(&$vars) {
   $items = $view->style_plugin->map_rows($vars['rows']);
   foreach($items as $item) {
     // Special handling for GeoRSS.
-    if (isset($item['lat']) && isset($item['lon'])) {
+    if (is_numeric($item['lat']) && is_numeric($item['lon'])) {
       $item['georss:point'] = $item['lat'] .' '.  $item['lon'];
     }
     if(isset($item['featureName'])) {