This commit is contained in:
1 parent
13a60c8cc4
commit
518e74dfb8
3 files changed
+92
-85
No files matched your search
+4
-3
@@ -139,9 +139,10 @@ class Project extends PhpObject {
|
||||
//Update geoJSON
|
||||
if(Converter::hasGpxFile($sCodeName) && (!Converter::isGeoJsonValid($sCodeName) || !$asProject['latitude'] && !$asProject['longitude'])) {
|
||||
$aiCenter = Converter::convertToGeoJson($sCodeName)['center'];
|
||||
$this->oDb->updateRow(self::PROJ_TABLE, $asProject['id'], ['latitude' => $aiCenter[1], 'longitude' => $aiCenter[0]]);
|
||||
$asProject['latitude'] = $aiCenter[1];
|
||||
$asProject['longitude'] = $aiCenter[0];
|
||||
$asProject['longitude'] = $aiCenter['longitude'];
|
||||
$asProject['latitude'] = $aiCenter['latitude'];
|
||||
|
||||
$this->oDb->updateRow(self::PROJ_TABLE, $asProject['id'], ['latitude' => $asProject['latitude'], 'longitude' => $asProject['longitude']]);
|
||||
}
|
||||
|
||||
switch($asProject['mode']) {
|
||||
|
||||
Reference in new issue
Block a user