$address['text'] = $address['geoloc'];
$address['postalText'] = $address['geocodedPostalText'];
unset($address['geoloc'], $address['geocodedPostalText']);
+ } else {
+ $address['geoloc'] = str_replace("\n", "\r\n", $address['geoloc']);
+ $address['geocodedPostalText'] = str_replace("\n", "\r\n", $address['geocodedPostalText']);
}
+ $address['text'] = str_replace("\n", "\r\n", $address['text']);
+ $address['postalText'] = str_replace("\n", "\r\n", $address['postalText']);
}
// Returns the address formated for postal use.
{
$res = XDB::query("SELECT id, accuracy, text, postalText,
postalCode, localityId, subAdministrativeAreaId, administrativeAreaId,
- countryId, latitude, longitude, pub, comment, updateTime,
+ countryId, latitude, longitude, pub, comment, UNIX_TIMESTAMP(updateTime) AS updateTime,
north, south, east, west,
FIND_IN_SET('current', flags) AS current,
FIND_IN_SET('temporary', flags) AS temporary,
south FLOAT(10,7) DEFAULT NULL,
east FLOAT(10,7) DEFAULT NULL,
west FLOAT(10,7) DEFAULT NULL,
- updateTime DATE NOT NULL DEFAULT 0,
+ updateTime DATETIME NOT NULL DEFAULT 0,
pub ENUM('public','ax','private') NOT NULL DEFAULT 'private',
comment VARCHAR(255) DEFAULT NULL,
PRIMARY KEY(pid, jobid, type, id),