From c4ac5181f6593694b8b75aad2d365b0f3925fa35 Mon Sep 17 00:00:00 2001 From: DanielKulbe Date: Tue, 27 Apr 2021 10:43:48 -0700 Subject: [PATCH] Issue #3154225 by Skymen, Daniel Kulbe, grasmash, wells: Trying to access array offset on value of type null --- src/Plugin/Network/PbsAuthBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Plugin/Network/PbsAuthBase.php b/src/Plugin/Network/PbsAuthBase.php index 6fa1d5a..94e09ef 100644 --- a/src/Plugin/Network/PbsAuthBase.php +++ b/src/Plugin/Network/PbsAuthBase.php @@ -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);