close #36 new maps can not be created

This commit is contained in:
Exodus4D
2015-09-28 22:25:56 +02:00
parent 5feda6551b
commit d78fb9e68b
33 changed files with 16 additions and 10 deletions

View File

@@ -444,7 +444,9 @@ class Map extends \Controller\AccessController {
// format map Data for return
$return->mapData = self::getFormattedMapData($maps);
$f3->set($cacheKey, $return, $responseTTL);
if(count($return->mapData) > 0){
$f3->set($cacheKey, $return, $responseTTL);
}
}else{
// get from cache
$return = $f3->get($cacheKey);