Skip to content

Commit

Permalink
Fix fatal error when http_client option is undefined (#9358)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Feb 25, 2024
1 parent 2cf6b35 commit b978a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function get_http_client($options = [])
{
$defaults = ['timeout' => 30, 'connect_timeout' => 5, 'read_timeout' => 120];

return new HttpClient($options + $this->config->get('http_client') + $defaults);
return new HttpClient($options + ($this->config->get('http_client') ?? []) + $defaults);
}

/**
Expand Down

0 comments on commit b978a55

Please sign in to comment.