From e5c5848f4b5fa12809a5bdae94298acfabe2b435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Sun, 19 Mar 2006 12:41:01 +0000 Subject: [PATCH] notify resource responsible if resource gets inveted --- calendar/inc/class.bocalupdate.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.bocalupdate.inc.php b/calendar/inc/class.bocalupdate.inc.php index 26fb199fe9..25216d394c 100644 --- a/calendar/inc/class.bocalupdate.inc.php +++ b/calendar/inc/class.bocalupdate.inc.php @@ -514,7 +514,12 @@ class bocalupdate extends bocal } foreach($to_notify as $userid => $statusid) { - if (!is_numeric($userid)) continue; // eg. a resource, ToDo notify the responsible of the resource + if (!is_numeric($userid)) + { + $res_info = $this->resource_info($userid); + $userid = $res_info['responsible']; + if (!isset($userid)) continue; + } if ($statusid == 'R' || $GLOBALS['egw']->accounts->get_type($userid) == 'g') {