summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2007-04-27 21:20:51 (GMT)
committer Brandon Bergren2007-04-27 21:20:51 (GMT)
commit65a52c4ddca03445a0350a0ec1caf39228ebbc0d (patch)
tree94b3e1f36602dd26bb5b6bf7421797fc8be36c5e
parent8a0d598b7816ca9d851205ea3968fc76f3f3f0e1 (diff)
Carry over ax's commit that I hadn't noticed previously.
-rw-r--r--gmap_location.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/gmap_location.module b/gmap_location.module
index 525c332..4ea9db6 100644
--- a/gmap_location.module
+++ b/gmap_location.module
@@ -781,9 +781,9 @@ function _gmap_location_store_location(&$object, $type, $update = false) {
}
else {
// based on location.module LOCATION_LATLON_USER_SUBMITTED=1
- db_query("INSERT INTO {location} (eid, type, latitude, longitude, source) VALUES (%d, '%s', '%f', '%f', '%d')",
- $object->eid, $type, $object->gmap_location_latitude,$object->gmap_location_longitude, 1);
- }
+ $lid = db_next_id('{location}_lid');
+ db_query("INSERT INTO {location} (eid, lid, type, latitude, longitude, source) VALUES (%d, %d, '%s', '%f', '%f', '%d')", $object->eid, $lid, $type, $object->gmap_location_latitude,$object->gmap_location_longitude, 1);
+ }
unset($object->gmap_location_latitude);
unset($object->gmap_location_longitude);
unset($object->gmap_location_set);