Skip to content

Commit 0c7b65d

Browse files
authored
Check isset on CoveredRateCenter key
Certain states do not have any rate centers available and thus this returns nothing. You can check from: * NH * NL * QC * NU
1 parent cecac5e commit 0c7b65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoveredRateCenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function getList($filters = Array()) {
1313
$rcs = [];
1414
$data = parent::_get('coveredRateCenters', $filters, Array("page"=> 1, "size" => 30), Array("page", "size"));
1515

16-
if($data['CoveredRateCenter']) {
16+
if(isset($data['CoveredRateCenter'])) {
1717
$items = $data['CoveredRateCenter'];
1818

1919
if($this->is_assoc($items))

0 commit comments

Comments
 (0)