Skip to content
Snippets Groups Projects
Commit 11f28d78 authored by Bart Visscher's avatar Bart Visscher
Browse files

Result of && if not the part

parent 5b60fad4
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment