From 7c6cd4fd830aebc8b79ead1403f18c36b56a70cb Mon Sep 17 00:00:00 2001
From: Stefano Gargiulo <info@creativeprogramming.it>
Date: Thu, 24 Apr 2014 17:38:10 +0200
Subject: [PATCH] Fix for 'idpdisco.extDiscoveryStorage is not a valid string
 value in discopower

See old issue: https://code.google.com/p/simplesamlphp/issues/detail?id=613
---
 modules/discopower/lib/PowerIdPDisco.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/discopower/lib/PowerIdPDisco.php b/modules/discopower/lib/PowerIdPDisco.php
index 10aad002f..75a624832 100644
--- a/modules/discopower/lib/PowerIdPDisco.php
+++ b/modules/discopower/lib/PowerIdPDisco.php
@@ -190,7 +190,7 @@ class sspmod_discopower_PowerIdPDisco extends SimpleSAML_XHTML_IdPDisco {
 		$idp = $this->getTargetIdp();
 		if($idp !== NULL) {
 
-			$extDiscoveryStorage = $this->config->getString('idpdisco.extDiscoveryStorage');
+			$extDiscoveryStorage = $this->config->getString('idpdisco.extDiscoveryStorage',NULL);
 			if ($extDiscoveryStorage !== NULL) {
 				$this->log('Choice made [' . $idp . '] (Forwarding to external discovery storage)');
 				SimpleSAML_Utilities::redirectTrustedURL($extDiscoveryStorage, array(
-- 
GitLab