projects
/
project/views_rss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1b0df3b
)
switched is_numeric for isset in non-empty check to avoid empty strings, which can...
author
David Goode
Thu, 26 Aug 2010 20:38:04 +0000 (20:38 +0000)
committer
David Goode
Thu, 26 Aug 2010 20:38:04 +0000 (20:38 +0000)
views/views_rss_views_fields.theme.inc
patch
|
blob
|
blame
|
history
diff --git
a/views/views_rss_views_fields.theme.inc
b/views/views_rss_views_fields.theme.inc
index
3bfd0a0
..
61b094b
100644
(file)
--- a/
views/views_rss_views_fields.theme.inc
+++ b/
views/views_rss_views_fields.theme.inc
@@
-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'])) {