Drops update time from profile_addresses.
authorStéphane Jacob <sj@m4x.org>
Sat, 18 Sep 2010 14:33:57 +0000 (16:33 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 18 Sep 2010 14:33:57 +0000 (16:33 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/address.php
modules/admin.php

index aad9fd0..16ecd80 100644 (file)
@@ -265,15 +265,15 @@ class Address
             XDB::execute('INSERT INTO  profile_addresses (pid, jobid, type, id, flags, accuracy,
                                                           text, postalText, postalCode, localityId,
                                                           subAdministrativeAreaId, administrativeAreaId,
-                                                          countryId, latitude, longitude, updateTime, pub, comment,
+                                                          countryId, latitude, longitude, pub, comment,
                                                           north, south, east, west)
-                               VALUES  ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?},
-                                        {?}, {?}, {?}, FROM_UNIXTIME({?}), {?}, {?}, {?}, {?}, {?}, {?})',
+                               VALUES  ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?},
+                                        {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})',
                          $this->pid, $this->jobid, $this->type, $this->id, $this->flags, $this->accuracy,
                          $this->text, $this->postalText, $this->postalCode, $this->localityId,
                          $this->subAdministrativeAreaId, $this->administrativeAreaId,
                          $this->countryId, $this->latitude, $this->longitude,
-                         time(), $this->pub, $this->comment,
+                         $this->pub, $this->comment,
                          $this->north, $this->south, $this->east, $this->west);
 
             if ($this->type == self::LINK_PROFILE) {
index c98c5bc..c8b57bc 100644 (file)
@@ -1460,15 +1460,15 @@ class AdminModule extends PLModule
                 XDB::execute("INSERT INTO  profile_addresses (jobid, type, id, accuracy,
                                                               text, postalText, postalCode, localityId,
                                                               subAdministrativeAreaId, administrativeAreaId,
-                                                              countryId, latitude, longitude, updateTime,
+                                                              countryId, latitude, longitude,
                                                               north, south, east, west)
                                    VALUES  ({?}, 'hq', 0, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?},
-                                            {?}, {?}, FROM_UNIXTIME({?}), {?}, {?}, {?}, {?})",
+                                            {?}, {?}, {?}, {?}, {?}, {?})",
                              $id, $address['accuracy'], $address['text'], $address['postalText'],
                              $address['postalCode'], $address['localityId'],
                              $address['subAdministrativeAreaId'], $address['administrativeAreaId'],
                              $address['countryId'], $address['latitude'], $address['longitude'],
-                             $address['updateTime'], $address['north'], $address['south'],
+                             $address['north'], $address['south'],
                              $address['east'], $address['west']);
 
                 $page->trigSuccess("L'entreprise a bien été mise à jour.");