Result of && if not the part

This commit is contained in:
Bart Visscher 2013-07-19 17:37:42 +02:00
parent 5b60fad467
commit 11f28d7880

View file

@ -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]);