use new notification app for calendar

This commit is contained in:
Cornelius Weiß 2006-09-25 10:29:03 +00:00
parent 8a04e759c4
commit 241c1d04cd

View File

@ -596,6 +596,20 @@ class bocalupdate extends bocal
$returncode = $send->Send();
// ToDo: give error-messages for all all failed sendings
// notification via notification app.
if (version_compare("5.1.0", phpversion()) && array_key_exists('notifications',$GLOBALS['egw_info']['apps'])) {
$notification = new notification();
$notification->set_message($body);
$notification->set_receivers(array($userid));
try {
$notification->send();
}
catch(Exception $exception) {
error_log($exception->getMessage());
}
}
}
}
// restore the enviroment