Skip to content

Commit

Permalink
Merge pull request #1218 from ditorelo/1213b
Browse files Browse the repository at this point in the history
Issue #1213 Fixing issue with Sharing plugin
  • Loading branch information
rjmackay authored and kamaulynder committed Sep 3, 2013
1 parent f653e74 commit 0d313c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,8 @@ protected function calculate_center($cluster)
foreach ($cluster as $marker)
{
// Handle both reports::fetch_incidents() response and actual ORM objects
$latitude = isset($marker->latitude) ? $marker->latitude : $marker->location->latitude;
$longitude = isset($marker->longitude) ? $marker->longitude : $marker->location->longitude;
$latitude = isset($marker["latitude"]) ? $marker["latitude"] : $marker["location"]["latitude"];
$longitude = isset($marker["longitude"]) ? $marker["longitude"] : $marker["location"]["longitude"];

if ($latitude < $south)
{
Expand Down

0 comments on commit 0d313c1

Please sign in to comment.