Replacing , with . in gps value
This commit is contained in:
@@ -69,8 +69,8 @@ class Workflowvalue extends mfBaseModel {
|
||||
|
||||
if($this->item->type == "gps") {
|
||||
if(is_array($value) && count($value) == 2) {
|
||||
$lat = $value['lat'];
|
||||
$long = $value['long'];
|
||||
$lat = str_replace(",", ".", $value['lat']);
|
||||
$long = str_replace(",", ".", $value['long']);
|
||||
$value = "$lat;$long";
|
||||
if($lat == null && $long == null) {
|
||||
$value = null;
|
||||
|
||||
Reference in New Issue
Block a user