Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-06-12 14:15:56 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-06-12 14:15:56 +0300
commit2ff8a0fc95ac5095ee02a57059b75175a4c2eace (patch)
treefa0def91aba2b535389e1fdd97c0e80e880f7a18 /lib/AppInfo
parentbab5af14bacfef42cb47c49a5a7c7cc91e837e71 (diff)
Fix ternary operator expression to actually return the array value
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r--lib/AppInfo/Application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 39433c775..7d55dcac2 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -52,7 +52,7 @@ class Application extends App {
return $container->getServer()->getUserFolder($user);
});
$container->registerParameter("testSmtp", $testSmtp);
- $container->registerParameter("referrer", isset($_SERVER['HTTP_REFERER']) ?: null);
+ $container->registerParameter("referrer", isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null);
$container->registerParameter("hostname", Util::getServerHostName());
}