Fixed the email notification.

This commit is contained in:
skeeter 2001-05-16 03:01:02 +00:00
parent 9dff6f11f4
commit ef64fa62eb

View File

@ -140,7 +140,7 @@ class calendar__
{ {
$preferences = CreateObject('phpgwapi.preferences',$participants[$i]); $preferences = CreateObject('phpgwapi.preferences',$participants[$i]);
$part_prefs = $preferences->read_repository(); $part_prefs = $preferences->read_repository();
if(!isset($part_prefs['calendar']['send_updates']) || $part_prefs['calendar']['send_updates'] == False) if(!isset($part_prefs['calendar']['send_updates']) || !$part_prefs['calendar']['send_updates'])
{ {
continue; continue;
} }
@ -177,7 +177,7 @@ class calendar__
break; break;
} }
$subject = 'Calendar Event ('.$action.') #'.$event_id.': '.$action_date.' (L)'; $subject = 'Calendar Event ('.$action.') #'.$event_id.': '.$action_date.' (L)';
$send->msg('email',$to,$subject,$body,$msgtype,'','','',$sender); $returncode = $send->msg('email',$to,$subject,$body,$msgtype,'','','',$sender);
} }
} }
unset($send); unset($send);