From 31b6123700b0fd9ddd6356f17ef11e491ab8bcb0 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Mon, 12 Oct 2009 06:48:44 +0000
Subject: [PATCH] saml: Handle entityID === NULL.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1841 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/saml/lib/Auth/Source/SP.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/saml/lib/Auth/Source/SP.php b/modules/saml/lib/Auth/Source/SP.php
index 2421fe654..12fb37aea 100644
--- a/modules/saml/lib/Auth/Source/SP.php
+++ b/modules/saml/lib/Auth/Source/SP.php
@@ -47,7 +47,7 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source {
 		/* Call the parent constructor first, as required by the interface. */
 		parent::__construct($info, $config);
 
-		if (!array_key_exists('entityID', $config)) {
+		if (!isset($config['entityID'])) {
 			$config['entityID'] = $this->getMetadataURL();
 		}
 
-- 
GitLab