1
0
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:
Moc
2014-07-26 10:57:49 +02:00
parent 3f3aa29131
commit bc1e551532

View File

@@ -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;
}