From c069e21da0c17334ecf32afca98b7632886f98d3 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 18 Dec 2009 00:11:12 -0500 Subject: [PATCH] If we already know it's a *new* event with no geolocation data, don't make the geoDriver have to check it. --- kronolith/lib/Driver/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index 0623ebbc5..c50988c23 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -648,7 +648,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver $tagger->tag($event->uid, $event->tags, 'event'); /* Update Geolocation */ - if ($gDriver = Kronolith::getGeoDriver()) { + if ($event->geoLocation && $gDriver = Kronolith::getGeoDriver()) { try { $gDriver->setLocation($event->id, $event->geoLocation); } catch (Horde_Exception $e) { -- 2.11.0