From 82a91162fe43e8853d8e8ef088b50a53d3853bb7 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Tue, 28 Aug 2018 04:10:33 +0000
Subject: [PATCH] Fix indentation of ec1f895ad5f35f85aeadf23a87c339c9f89838d4

---
 modules/core/www/frontpage_config.php | 38 +++++++++++++--------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/modules/core/www/frontpage_config.php b/modules/core/www/frontpage_config.php
index a343b9580..dc595db47 100644
--- a/modules/core/www/frontpage_config.php
+++ b/modules/core/www/frontpage_config.php
@@ -64,28 +64,28 @@ if ($config->getBoolean('admin.checkforupdates', true) && $current !== 'master')
         $latest = $session->getData("core:latest_simplesamlphp_version", "version");
 
         if (!$latest) {
-        $api_url = 'https://api.github.com/repos/simplesamlphp/simplesamlphp/releases';
-        $ch = curl_init($api_url.'/latest');
-        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-        curl_setopt($ch, CURLOPT_USERAGENT, 'SimpleSAMLphp');
-        curl_setopt($ch, CURLOPT_TIMEOUT, 2);
-        curl_setopt($ch, CURLOPT_PROXY, $config->getString('proxy', null));
-        curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config->getValue('proxy.auth', null));
-        $response = curl_exec($ch);
-
-        if (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200) {
-            $latest = json_decode($response, true);
-            $session->setData("core:latest_simplesamlphp_version", "version", $latest);
-        }
-        curl_close($ch);
+            $api_url = 'https://api.github.com/repos/simplesamlphp/simplesamlphp/releases';
+            $ch = curl_init($api_url.'/latest');
+            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+            curl_setopt($ch, CURLOPT_USERAGENT, 'SimpleSAMLphp');
+            curl_setopt($ch, CURLOPT_TIMEOUT, 2);
+            curl_setopt($ch, CURLOPT_PROXY, $config->getString('proxy', null));
+            curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config->getValue('proxy.auth', null));
+            $response = curl_exec($ch);
+
+            if (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200) {
+                $latest = json_decode($response, true);
+                $session->setData("core:latest_simplesamlphp_version", "version", $latest);
+            }
+            curl_close($ch);
         }
 
         if ($latest && version_compare($current, ltrim($latest['tag_name'], 'v'), 'lt')) {
-        $outdated = true;
-        $warnings[] = array(
-            '{core:frontpage:warnings_outdated}',
-            array('%LATEST_URL%' => $latest['html_url'])
-        );
+            $outdated = true;
+            $warnings[] = array(
+                '{core:frontpage:warnings_outdated}',
+                array('%LATEST_URL%' => $latest['html_url'])
+            );
         }
     }
 }
-- 
GitLab