diff --git a/app/Controllers/Kewilayahan/Peta.php b/app/Controllers/Kewilayahan/Peta.php index 207cd0d4..4481ee99 100644 --- a/app/Controllers/Kewilayahan/Peta.php +++ b/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; + } } }