From: Michael J. Rubinsky Date: Fri, 18 Dec 2009 05:11:12 +0000 (-0500) Subject: If we already know it's a *new* event with no geolocation data, X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c069e21da0c17334ecf32afca98b7632886f98d3;p=horde.git If we already know it's a *new* event with no geolocation data, don't make the geoDriver have to check it. --- 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) {