Fix fatal error caused by moved Categories

This commit is contained in:
Nathan Gray 2016-05-05 16:56:25 +00:00
parent 797ff38fa3
commit 9859cfa679

View File

@ -1721,8 +1721,7 @@ class calendar_boupdate extends calendar_bo
foreach(explode(',',$event['category']) as $cat_id)
{
list($cat) = $GLOBALS['egw']->categories->return_single($cat_id);
$cat_string[] = stripslashes($cat['name']);
$cat_string[] = stripslashes(Api\Categories::id2name($cat_id));
}
$var['category'] = Array(
'field' => lang('Category'),