aboutsummaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-19 17:37:42 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-19 17:37:42 +0200
commit11f28d78805674ea06ef9227cf922140bff4a4ae (patch)
tree9789acf570a9aceb5f6e07127a784e16ff423bcc /lib/template.php
parent5b60fad467164326a776103e6a6ffc5a69b91a37 (diff)
downloadnextcloud-server-11f28d78805674ea06ef9227cf922140bff4a4ae.tar.gz
nextcloud-server-11f28d78805674ea06ef9227cf922140bff4a4ae.zip
Result of && if not the part
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php
index 9ad1a330d4f..9b16ed94661 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -181,7 +181,7 @@ class OC_Template{
$this->renderas = $renderas;
$this->application = $app;
$this->vars = array();
- $this->vars['requesttoken'] = OC::$session && OC_Util::callRegister();
+ $this->vars['requesttoken'] = OC::$session ? OC_Util::callRegister() : '';
$parts = explode('/', $app); // fix translation when app is something like core/lostpassword
$this->l10n = OC_L10N::get($parts[0]);