setting vars empty, which get only conditionally set

This commit is contained in:
Ralf Becker 2010-06-10 15:37:47 +00:00
parent 58ce706d2c
commit dba87a90cf
2 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,7 @@ abstract class egw_framework
'img_root' => $GLOBALS['egw_info']['server']['webserver_url'] . $this->template_dir.'/images',
'version' => $GLOBALS['egw_info']['server']['versions']['phpgwapi']
);
$var['page_generation_time'] = '';
if($GLOBALS['egw_info']['user']['preferences']['common']['show_generation_time'])
{
$totaltime = sprintf('%4.2lf',microtime(true) - $GLOBALS['egw_info']['flags']['page_start_time']);

View File

@ -474,6 +474,10 @@ class idots_framework extends egw_framework
));
}
}
else
{
$this->tpl->set_var('upper_tabs','');
}
if (!($max_icons=$GLOBALS['egw_info']['user']['preferences']['common']['max_icons']))
{