1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Fixes #2286 - Properly check for attachment when sending PM

This commit is contained in:
Tijn Kuyper
2017-01-16 19:30:30 +01:00
committed by GitHub
parent 69d2d283f9
commit 17ef449420

View File

@@ -534,6 +534,8 @@ class pm_extended extends private_message
}
if(!empty($_POST['uploaded']))
{
if(check_class($this->pmPrefs['attach_class']))
{
$_POST['uploaded'] = $this->processAttachments();
@@ -553,6 +555,7 @@ class pm_extended extends private_message
unset($_POST['uploaded']);
}
}
$_POST['from_id'] = USERID;