From 11f28d78805674ea06ef9227cf922140bff4a4ae Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 19 Jul 2013 17:37:42 +0200 Subject: [PATCH] Result of && if not the part --- lib/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.39.5