Permalink
Browse files

Fixed bug with manually specifying GPS coordinates.

  • Loading branch information...
1 parent 9df36d6 commit e520b6c42f6de6a5b9d30b19fa609a02bc50e177 rWatcher committed with talmdal Mar 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/exif_gps/helpers/exif_gps_event.php
@@ -73,7 +73,7 @@ static function item_edit_form_completed($item, $form) {
// 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)

0 comments on commit e520b6c

Please sign in to comment.