We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf89cf0 commit 14496a7Copy full SHA for 14496a7
src/app/code/community/Zendesk/Zendesk/Model/Api/Tickets.php
@@ -82,7 +82,9 @@ public function forOrder($orderIncrementId)
82
]
83
);
84
85
- if(count($response['results'])) {
+ // Check if $response['results'] is set and is an array before calling count()
86
+ // See https://github.com/agnostack/magento_extension/pull/185
87
+ if (isset($response['results']) && is_array($response['results']) && count($response['results'])) {
88
return $response['results'];
89
} else {
90
return false;
0 commit comments