Handle 'None' show option

This commit is contained in:
Nathan Gray 2015-04-13 19:08:54 +00:00
parent cbcb273367
commit 5cebf6be61

View File

@ -1344,7 +1344,7 @@ class infolog_bo
'filter'=> "user$user".($do_events ? 'date' : 'opentoday').$date_wanted,
'start' => 0,
);
if ($GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show'])
if ($GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show'] || $GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show'] === '0')
{
$query['col_filter']['info_type'] = explode(',',$GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show']);
}