Index: branches/5.0.x/core/kernel/application.php =================================================================== diff -u -r12343 -r12356 --- branches/5.0.x/core/kernel/application.php (.../application.php) (revision 12343) +++ branches/5.0.x/core/kernel/application.php (.../application.php) (revision 12356) @@ -1,6 +1,6 @@ EmailEvent($email_event_name, 1, $to_user_id, $send_params); return $event; @@ -2539,7 +2539,7 @@ * @param array $send_params associative array of direct send params, possible keys: to_email, to_name, from_email, from_name, message, message_text * @return unknown */ - function &EmailEventUser($email_event_name, $to_user_id = -1, $send_params = false) + function &EmailEventUser($email_event_name, $to_user_id = null, $send_params = false) { $event =& $this->EmailEvent($email_event_name, 0, $to_user_id, $send_params); return $event;