1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

PM Email Notifications: Fixes #1487

This commit is contained in:
Cameron
2016-04-10 08:43:54 -07:00
parent 7d7ee21cbe
commit 2971fb184c
2 changed files with 6 additions and 4 deletions

View File

@@ -263,9 +263,11 @@ class private_message
{
$info['pm_id'] = $pmid;
e107::getEvent()->trigger('user_pm_sent', $info);
if(check_class($this->pmPrefs['notify_class'], $vars['to_info']['user_class']))
if(check_class($this->pmPrefs['notify_class'], null, $vars['to_info']['user_id']))
{
set_time_limit(30);
set_time_limit(20);
$this->pm_send_notify($vars['to_info']['user_id'], $vars, $pmid, count($a_list));
}
$ret .= LAN_PM_40.": {$vars['to_info']['user_name']}<br />";