fixed division by zero, by removing not longer needed mobile code

This commit is contained in:
Ralf Becker 2011-07-09 16:54:12 +00:00
parent 235f608fb9
commit 02566ff159

View File

@ -507,12 +507,7 @@ class idots_framework extends egw_framework
$this->tpl->set_var('upper_tabs',''); $this->tpl->set_var('upper_tabs','');
} }
if (html::$ua_mobile) if (!($max_icons=$GLOBALS['egw_info']['user']['preferences']['common']['max_icons']))
{
$max_icons = 0;
$this->tpl->set_var('app_icons','');
}
elseif (!($max_icons=$GLOBALS['egw_info']['user']['preferences']['common']['max_icons']))
{ {
$max_icons = 30; $max_icons = 30;
} }