Skip to content

Commit

Permalink
Do not try to explode() return parameter when it already is an array
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Mar 20, 2024
1 parent 2375e46 commit 946ea70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/RemoteToolsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public function wasExecuted()
*/
public function getOriginalReturnFields()
{
$return = $this->original_request['return'] ?? '';
$return = $this->original_request['return'] ?? [];
if (is_array($return)) {
return $return;
}
Expand Down

0 comments on commit 946ea70

Please sign in to comment.