From 8da00e2d9aef5b77832a8d05a87c6b7cfbc5940a Mon Sep 17 00:00:00 2001
From: "Michiel@unhosted" <michiel@unhosted.org>
Date: Thu, 13 Oct 2011 15:49:53 +0200
Subject: [PATCH] avoiding notice if ['HTTPS'] is not set

---
 apps/remoteStorage/compat.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/remoteStorage/compat.php b/apps/remoteStorage/compat.php
index 35a133c43c..445257320c 100644
--- a/apps/remoteStorage/compat.php
+++ b/apps/remoteStorage/compat.php
@@ -101,7 +101,7 @@ if(count($pathParts) >= 8 && $pathParts[0] == '' && $pathParts[2] == 'remoteStor
 			$token=OC_remoteStorage::createDataScope($appUrl, $userAddress, $dataScope);
 			header('Location: '.$_GET['redirect_uri'].'#access_token='.$token.'&token_type=remoteStorage');
 		} else {
-			if($_SERVER['HTTPS']){
+			if((isset($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'])) {
 				$url = "https://";
 			} else {
 				$url = "http://";
-- 
GitLab