mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Fixes #2286 - Properly check for attachment when sending PM
This commit is contained in:
@@ -534,6 +534,8 @@ class pm_extended extends private_message
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($_POST['uploaded']))
|
||||||
|
{
|
||||||
if(check_class($this->pmPrefs['attach_class']))
|
if(check_class($this->pmPrefs['attach_class']))
|
||||||
{
|
{
|
||||||
$_POST['uploaded'] = $this->processAttachments();
|
$_POST['uploaded'] = $this->processAttachments();
|
||||||
@@ -553,6 +555,7 @@ class pm_extended extends private_message
|
|||||||
unset($_POST['uploaded']);
|
unset($_POST['uploaded']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$_POST['from_id'] = USERID;
|
$_POST['from_id'] = USERID;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user