diff --git a/www/saml2/sp/initSSO.php b/www/saml2/sp/initSSO.php
index 637f5273f75ae345c0818cec65bd2edfd7070ac6..02058b20c784facc673bd1d99d4e31c69a24039f 100644
--- a/www/saml2/sp/initSSO.php
+++ b/www/saml2/sp/initSSO.php
@@ -24,6 +24,8 @@ if (empty($_GET['RelayState'])) {
 	SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NORELAYSTATE');
 }
 
+$reachableIDPs = array();
+
 try {
 
 	$idpentityid = isset($_GET['idpentityid']) ? $_GET['idpentityid'] : $config->getString('default-saml20-idp', NULL) ;