1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Merge pull request #919 from lonalore/master

Missing event triggering after sending PM to a single person. Append ID of ...
This commit is contained in:
Cameron
2015-03-06 15:08:40 -08:00

View File

@@ -211,6 +211,7 @@ class private_message
if($pmid = $sql->insert('private_msg', $info))
{
$info['pm_id'] = $pmid;
e107::getEvent()->trigger('user_pm_sent', $info);
if($class == FALSE)
{
@@ -244,6 +245,8 @@ class private_message
$info['pm_to'] = intval($vars['to_info']['user_id']); // Sending to a single user now
if($pmid = $sql->insert('private_msg', $info))
{
$info['pm_id'] = $pmid;
e107::getEvent()->trigger('user_pm_sent', $info);
if(check_class($this->pmPrefs['notify_class'], $vars['to_info']['user_class']))
{
set_time_limit(30);