From 9859cfa6790b982c0e8e6266a796e539938c5490 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 5 May 2016 16:56:25 +0000 Subject: [PATCH] Fix fatal error caused by moved Categories --- calendar/inc/class.calendar_boupdate.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 27be84e3e5..b3708f83e0 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -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'),