From b594041ea883efba910ccd69d2cd78573a1f7d26 Mon Sep 17 00:00:00 2001 From: pecintaseni Date: Mon, 7 Oct 2024 13:37:38 +0700 Subject: [PATCH] minor bug centroid --- app/Controllers/Kewilayahan/Peta.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; + } } }