Fix annoucement sender issue - ref #5738

skala
Hubert Borderiou 13 years ago
parent 7d484d914c
commit 4e37bacbc0
  1. 2
      main/inc/lib/notification.lib.php

@ -145,7 +145,7 @@ class Notification extends Model {
case NOTIFY_GROUP_AT_ONCE:
if (!empty($user_info['mail'])) {
$name = api_get_person_name($user_info['firstname'], $user_info['lastname']);
api_mail_html($name, $user_info['mail'], Security::filter_terms($title), Security::filter_terms($content), $this->admin_name, $this->admin_email);
api_mail_html($name, $user_info['mail'], Security::filter_terms($title), Security::filter_terms($content), $sender_info['complete_name'], $sender_info['email']);
}
$params['sent_at'] = api_get_utc_datetime();
//Saving the notification to be sent some day

Loading…
Cancel
Save