Skip to content

Commit

Permalink
fixed key check
Browse files Browse the repository at this point in the history
  • Loading branch information
ttp authored Aug 15, 2016
1 parent a532194 commit d69fc21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fish-map/fish_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function add_stylesheets_map() {
}

function is_export_info_request() {
return defined('EXPORT_INFO_KEY') && isset($_GET['export_key']) && $_GET['export_key'] !== EXPORT_INFO_KEY;
return defined('EXPORT_INFO_KEY') && isset($_GET['export_key']) && $_GET['export_key'] == EXPORT_INFO_KEY;
}

function fish_map($attr) {
Expand Down Expand Up @@ -256,4 +256,4 @@ function fish_map_update_position() {
$markerModel->updatePosition($marker_id, $_POST['lat'], $_POST['lng']);
echo json_encode($markerModel->getById($marker_id));
die();
}
}

0 comments on commit d69fc21

Please sign in to comment.