Browse Source

minor bug centroid

main^2
pecintaseni 6 months ago committed by =
parent
commit
b594041ea8
  1. 8
      app/Controllers/Kewilayahan/Peta.php

8
app/Controllers/Kewilayahan/Peta.php

@ -43,7 +43,13 @@ class Peta extends Controller
or die("Unable to execute query\n");
while ($row = oci_fetch_assoc($stmt)) {
print $row['GEOJSON']->load() . "\n";
if ($row['GEOJSON']) {
print $row['GEOJSON']->load() . "\n";
}
else {
print null;
}
}
}

Loading…
Cancel
Save