From 39173ceb6c2445cc135715deed9716ab51527aed Mon Sep 17 00:00:00 2001 From: dasjo Date: Fri, 31 Dec 2010 15:30:10 +0100 Subject: [PATCH 1/2] geofield views handler fix, works with current versions --- views/geofield_handler_field_point.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/geofield_handler_field_point.inc b/views/geofield_handler_field_point.inc index 3159846..9c88028 100644 --- a/views/geofield_handler_field_point.inc +++ b/views/geofield_handler_field_point.inc @@ -15,13 +15,13 @@ class geofield_handler_field_point extends views_handler_field_field { foreach ($object as $a) { if (is_array($a)) { foreach ($a as $b) { - return 'POINT( ' . $b[0]['lon'] . ' ' . $b[0]['lat'] . ')'; + if(isset($b[0]['lon']) && isset($b[0]['lat'])) { + return 'POINT( ' . $b[0]['lon'] . ' ' . $b[0]['lat'] . ')'; + } } } } } - else { - return ''; - } + return ''; } } From 8b10ba900324d85f9e8bbc72d86768a3373e0147 Mon Sep 17 00:00:00 2001 From: dasjo Date: Thu, 28 Jun 2012 05:33:44 -0700 Subject: [PATCH 2/2] Updated README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 45a94d5..54999b8 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,8 @@ authors: Tristan O'Neil + +test some changes here + {} + nice + *wow* \ No newline at end of file