From ad447b16b34b8f10ab5752598a6431a89bd5879a Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Mon, 17 Aug 2009 09:04:39 +0000
Subject: [PATCH] SimpleSAML_Auth_Source: Use getArray() instead of getValue().

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1675 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/Auth/Source.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/SimpleSAML/Auth/Source.php b/lib/SimpleSAML/Auth/Source.php
index 95e9b2a13..27803ebb0 100644
--- a/lib/SimpleSAML/Auth/Source.php
+++ b/lib/SimpleSAML/Auth/Source.php
@@ -165,15 +165,11 @@ abstract class SimpleSAML_Auth_Source {
 		/* For now - load and parse config file. */
 		$config = SimpleSAML_Configuration::getConfig('authsources.php');
 
-		$authConfig = $config->getValue($authId, NULL);
+		$authConfig = $config->getArray($authId, NULL);
 		if ($authConfig === NULL) {
 			return NULL;
 		}
 
-		if (!is_array($authConfig)) {
-			throw new Exception('Invalid configuration for authentication source \'' . $authId . '\'.');
-		}
-
 		return self::parseAuthSource($authId, $authConfig);
 	}
 
-- 
GitLab