From 72d95d667d9d492653d180f369dcc106dfe45269 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 4 Jun 2022 08:03:12 -0700 Subject: [PATCH] cleanup --- p3k/geo/StaticMap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } }