Browse Source

cleanup

main
Aaron Parecki 2 years ago
parent
commit
72d95d667d
Failed to extract signature
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      p3k/geo/StaticMap.php

+ 4
- 4
p3k/geo/StaticMap.php View File

@ -351,9 +351,9 @@ function generate($params, $filename, $assetPath) {
foreach($yTiles as $y=>$ch) { foreach($yTiles as $y=>$ch) {
$content = curl_multi_getcontent($ch); $content = curl_multi_getcontent($ch);
if($content) if($content)
$tiles["$x"]["$y"] = @imagecreatefromstring($content);
$tiles[$x][$y] = @imagecreatefromstring($content);
else else
$tiles["$x"]["$y"] = $blank;
$tiles[$x][$y] = $blank;
} }
} }
@ -362,9 +362,9 @@ function generate($params, $filename, $assetPath) {
foreach($yTiles as $y=>$ch) { foreach($yTiles as $y=>$ch) {
$content = curl_multi_getcontent($ch); $content = curl_multi_getcontent($ch);
if($content) if($content)
$overlays["$x"]["$y"] = @imagecreatefromstring($content);
$overlays[$x][$y] = @imagecreatefromstring($content);
else else
$overlays["$x"]["$y"] = $blank;
$overlays[$x][$y] = $blank;
} }
} }
} }

Loading…
Cancel
Save