Browse Source

minor bug centroid

main
pecintaseni 6 months ago
parent
commit
08b03a9eff
  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