Skip to content

Commit

Permalink
Do not cache the track when the activity creation failed
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Aug 26, 2014
1 parent 42f9758 commit cb60290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visugps/php/vg_proxy.php
Expand Up @@ -68,7 +68,7 @@
$visuKey = $doarama->createVisualization($activity);
$jsTrack['doaramaVId'] = $activity->id;
$jsTrack['doaramaUrl'] = $doarama->getVisualizationUrl($visuKey);
if (!isset($jsTrack['error']) && !isset($jsTrack['kmlUrl'])) {
if (!isset($jsTrack['error']) && !isset($jsTrack['kmlUrl']) && $activity->id != null) {
$cache->set(@json_encode($jsTrack), $url);
}
}
Expand Down

0 comments on commit cb60290

Please sign in to comment.