diff --git a/classes/class-pbs-check-dma.php b/classes/class-pbs-check-dma.php index 1390edf..eea3c50 100644 --- a/classes/class-pbs-check-dma.php +++ b/classes/class-pbs-check-dma.php @@ -77,7 +77,8 @@ public function get_location_from_ip($client_ip) { error_log("parse error"); return array('errors' => $response); } - $zipcode = $override_zipcode ? $override_zipcode : false; + $zipcode = !empty($item['zipcode']) ? (string) $item['zipcode'] : ''; + $zipcode = $override_zipcode ? $override_zipcode : $zipcode; $state = ''; $county = ''; if (!$override_zipcode && (empty($item['$links']) || !is_array($item['$links']))) {