diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-06-12 14:15:56 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-06-12 14:15:56 +0300 |
commit | 2ff8a0fc95ac5095ee02a57059b75175a4c2eace (patch) | |
tree | fa0def91aba2b535389e1fdd97c0e80e880f7a18 /lib/AppInfo | |
parent | bab5af14bacfef42cb47c49a5a7c7cc91e837e71 (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.php | 2 |
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()); } |