mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Fixes #715 - Fatal error when sending Private Message to multiple users
This commit is contained in:
@@ -394,7 +394,7 @@ class pm_extended extends private_message
|
||||
{
|
||||
if($to_info = $this->pm_getuid($to))
|
||||
{ // Check whether sender is blocked - if so, add one to count
|
||||
if(!e107::getDb()->update('private_msg_block',"pm_block_count=pm_block_count+1 WHERE pm_block_from = '".USERID."' AND pm_block_to = '".$tp->toDB($to)."'"))
|
||||
if(!e107::getDb()->update('private_msg_block',"pm_block_count=pm_block_count+1 WHERE pm_block_from = '".USERID."' AND pm_block_to = '".e107::getParser()->toDB($to)."'"))
|
||||
{
|
||||
$_POST['to_array'][] = $to_info;
|
||||
}
|
||||
|
Reference in New Issue
Block a user