summaryrefslogtreecommitdiffstats
path: root/apps/remoteStorage/compat.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/remoteStorage/compat.php')
-rw-r--r--apps/remoteStorage/compat.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/remoteStorage/compat.php b/apps/remoteStorage/compat.php
index 35a133c43c7..445257320c6 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://";