diff --git a/p3k/geo/StaticMap.php b/p3k/geo/StaticMap.php index 30ec383..aa3a9fd 100644 --- a/p3k/geo/StaticMap.php +++ b/p3k/geo/StaticMap.php @@ -351,9 +351,9 @@ function generate($params, $filename, $assetPath) { foreach($yTiles as $y=>$ch) { $content = curl_multi_getcontent($ch); if($content) - $tiles["$x"]["$y"] = @imagecreatefromstring($content); + $tiles[$x][$y] = @imagecreatefromstring($content); else - $tiles["$x"]["$y"] = $blank; + $tiles[$x][$y] = $blank; } } @@ -362,9 +362,9 @@ function generate($params, $filename, $assetPath) { foreach($yTiles as $y=>$ch) { $content = curl_multi_getcontent($ch); if($content) - $overlays["$x"]["$y"] = @imagecreatefromstring($content); + $overlays[$x][$y] = @imagecreatefromstring($content); else - $overlays["$x"]["$y"] = $blank; + $overlays[$x][$y] = $blank; } } }