This commit is contained in:
e.arrahn
2021-07-15 11:15:31 +08:00
parent 6db9a37839
commit c476811955
4 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -328,7 +328,7 @@
<div class='col-md-8'>
@php
$poskod = Http::get($api_url . '/api/poskod/'. $customer_info['poskod'])->json();
if(sizeof($poskod) < 1 || sizeof($poskod) > 1){
if(empty($poskod)){
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
}
$daerah = Http::get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();