1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 04:23:38 +01:00

[ticket/14448] Correctly pass verify setting if available

PHPBB3-14448
This commit is contained in:
Marc Alexander 2016-02-08 13:26:19 +01:00
parent fd9c05309d
commit 8cf086ef9b

View File

@ -105,7 +105,7 @@ class remote extends base
$guzzle_options = [
'timeout' => $this->upload->upload_timeout,
'connect_timeout' => $this->upload->upload_timeout,
'verify' => !empty($this->config['remote_upload_verify']),
'verify' => !empty($this->config['remote_upload_verify']) ? (bool) $this->config['remote_upload_verify'] : false,
];
$client = new \GuzzleHttp\Client($guzzle_options);