From 606898787c2d3ec3c14d8f312adb54d6254c8ab7 Mon Sep 17 00:00:00 2001 From: rWatcher Date: Sat, 20 Mar 2010 13:21:01 -0400 Subject: [PATCH] Fixed bug with manually specifying GPS coordinates. --- modules/exif_gps/helpers/exif_gps_event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exif_gps/helpers/exif_gps_event.php b/modules/exif_gps/helpers/exif_gps_event.php index 704edc5e..046818ab 100644 --- a/modules/exif_gps/helpers/exif_gps_event.php +++ b/modules/exif_gps/helpers/exif_gps_event.php @@ -73,7 +73,7 @@ class exif_gps_event_Core { // Require a set of coordinates (both latitude and longitude). // If one or both fields are blank, completely delete any coordinates associated with this item. - if (($form->edit_item->latitude->value == "") || ($form->edit_item->longitude->value == "")) { + if (($form->edit_item->gps_data->latitude->value == "") || ($form->edit_item->gps_data->longitude->value == "")) { db::build() ->delete("exif_coordinates") ->where("item_id", "=", $item->id)