From 250e7e2b71775ca6a3c2e9c6dc9e7773fec08797 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Fri, 22 Jun 2018 14:04:39 +0000
Subject: [PATCH] Use getValue for proxy.auth to cope with legacy configs.

The configuration template had 'proxy.auth = false' listed for
years. Prevent installs from breaking on this on upgrade.
---
 modules/core/www/frontpage_config.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/core/www/frontpage_config.php b/modules/core/www/frontpage_config.php
index dd6cac397..3909bb461 100644
--- a/modules/core/www/frontpage_config.php
+++ b/modules/core/www/frontpage_config.php
@@ -67,7 +67,7 @@ if ($config->getBoolean('admin.checkforupdates', true) && $current !== 'master')
         curl_setopt($ch, CURLOPT_USERAGENT, 'SimpleSAMLphp');
         curl_setopt($ch, CURLOPT_TIMEOUT, 2);
         curl_setopt($ch, CURLOPT_PROXY, $config->getString('proxy', null));
-        curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config->getstring('proxy.auth', null));
+        curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config->getValue('proxy.auth', null));
         $response = curl_exec($ch);
 
         if (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200) {
-- 
GitLab