Skip to content

Commit

Permalink
Issue #3154225 by Skymen, Daniel Kulbe, grasmash, wells: Trying to ac…
Browse files Browse the repository at this point in the history
…cess array offset on value of type null
  • Loading branch information
DanielKulbe authored and Christopher C. Wells committed Apr 27, 2021
1 parent 20521ab commit c4ac518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugin/Network/PbsAuthBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ protected function initSdk() {
];

// Proxy configuration data for outward proxy.
$proxyUrl = $this->siteSettings->get('http_client_config')['proxy']['http'];
if ($proxyUrl) {
$league_settings['proxy'] = $proxyUrl;
$config = $this->siteSettings->get('http_client_config');
if (!empty($config['proxy']['http'])) {
$league_settings['proxy'] = $config['proxy']['http'];
}

return new $class_name($league_settings);
Expand Down

0 comments on commit c4ac518

Please sign in to comment.