From 02566ff15918d0265e7f5b5b358c5051868b00f1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 9 Jul 2011 16:54:12 +0000 Subject: [PATCH] fixed division by zero, by removing not longer needed mobile code --- phpgwapi/templates/idots/class.idots_framework.inc.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index c205ef0f97..dff9d18371 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -507,12 +507,7 @@ class idots_framework extends egw_framework $this->tpl->set_var('upper_tabs',''); } - if (html::$ua_mobile) - { - $max_icons = 0; - $this->tpl->set_var('app_icons',''); - } - elseif (!($max_icons=$GLOBALS['egw_info']['user']['preferences']['common']['max_icons'])) + if (!($max_icons=$GLOBALS['egw_info']['user']['preferences']['common']['max_icons'])) { $max_icons = 30; }