Skip to content

Commit

Permalink
fix array format that seems not to work with some PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocelyn Delande committed Dec 23, 2013
1 parent 72402bd commit 3d8d154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ajax/all_points.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function ref_point_to_geoJSONFeature($name, $values) {
return array("type" => "Feature",
"geometry" => array(
"type" => "Point",
"coordinates" => [$values[1],$values[0]]
"coordinates" => array($values[1],$values[0]);
),
"properties" => array("name" => $name, "type" => 'loc_point')
);
Expand Down
2 changes: 1 addition & 1 deletion class/site_point.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function to_geoJSON() {
return array("type" => "Feature",
"geometry" => array(
"type" => "Point",
"coordinates" => [$lon, $lat]
"coordinates" => array($lon, $lat)
),
"properties" => array("name" => $name,
"type" => 'pano_point',
Expand Down

0 comments on commit 3d8d154

Please sign in to comment.