summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Barth2010-03-03 01:22:52 (GMT)
committer Alex Barth2010-03-03 01:22:52 (GMT)
commit25c06d85a9cf4172978394001f1bc2f8ec7327c0 (patch)
tree0581706ec146b0206fdaea6f7095dc4babd152f5
parent770e9ea31150ae41edfb24be894510056f41cd5e (diff)
Fix notices.
-rw-r--r--views/views_rss_views_fields.theme.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/views_rss_views_fields.theme.inc b/views/views_rss_views_fields.theme.inc
index b4eeb04..334ddf5 100644
--- a/views/views_rss_views_fields.theme.inc
+++ b/views/views_rss_views_fields.theme.inc
@@ -28,11 +28,11 @@ 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 ($item['lat'] && $item['lon']) {
+ if (isset($item['lat']) && isset($item['lon'])) {
$item['georss:point'] = $item['lat'] .' '. $item['lon'];
- unset($item['lat']);
- unset($item['lon']);
}
+ unset($item['lat']);
+ unset($item['lon']);
$rows .= theme('views_rss_fields_item', $item);
foreach ($item as $k => $v) {
$elements[$k] = $k;