diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-19 17:37:42 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-19 17:37:42 +0200 |
commit | 11f28d78805674ea06ef9227cf922140bff4a4ae (patch) | |
tree | 9789acf570a9aceb5f6e07127a784e16ff423bcc /lib/template.php | |
parent | 5b60fad467164326a776103e6a6ffc5a69b91a37 (diff) | |
download | nextcloud-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.php | 2 |
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]); |