From d2fa01c887ff5086b8d87cc90d7bf45dcc1ab6ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Frank=20Tam=C3=A1s?= <sitya@niif.hu>
Date: Tue, 13 Jan 2015 14:51:25 +0100
Subject: [PATCH] Typo

---
 config-templates/config.php                           | 1 -
 lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-templates/config.php b/config-templates/config.php
index 1a26e7df6..03e2b7ad0 100644
--- a/config-templates/config.php
+++ b/config-templates/config.php
@@ -599,7 +599,6 @@ $config = array(
      *     array('type' => 'mdx', server => 'http://mdx.server.com:8080', 'cachedir' => '/var/simplesamlphp/mdx-cache', 'cachelength' => 86400)
      *     ),
      *
-     *
      * Default:
      * 'metadata.sources' => array(
      *     array('type' => 'flatfile')
diff --git a/lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php b/lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
index 2ebac4d09..d0c48401c 100644
--- a/lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
+++ b/lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
@@ -282,7 +282,8 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
 			throw new Exception('No metadata for set "' . $set .
 				'" available from "' . $index . '".');
 		}
-	if (is_array($data[0])) $data = $data[0];
+		if (is_array($data[0])) $data = $data[0];
+
 		$this->writeToCache($set, $index, $data);
 
 		return $data;
-- 
GitLab