Skip to content

Commit

Permalink
Merge branch '2.x' into bump_version_2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli authored Dec 5, 2023
2 parents 32510b9 + 2691042 commit 97d2b7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Controller/PaginationHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ protected function listEntities(PagerInterface $pager = null, array $query_param
// Ignore entity type key from response, ex.: developer, apiproduct,
// etc.
$responseArray = reset($responseArray);
if (empty($responseArray)) {
// Appgroup can be empty.
if (empty($responseArray) || !is_array($responseArray)) {
return [];
}
$entities = $this->responseArrayToArrayOfEntities($responseArray, $key_provider);
Expand Down

0 comments on commit 97d2b7b

Please sign in to comment.