mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
Fixed bug #467825
git-svn-id: file:///svn/phpbb/trunk@1153 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -921,8 +921,7 @@ else if( $submit || $refresh || $mode != "" )
|
|||||||
if( $inbox_info['inbox_items'] > $board_config['max_inbox_privmsgs'] )
|
if( $inbox_info['inbox_items'] > $board_config['max_inbox_privmsgs'] )
|
||||||
{
|
{
|
||||||
$sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . "
|
$sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . "
|
||||||
WHERE ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . "
|
WHERE privmsgs_type = " . PRIVMSGS_NEW_MAIL . "
|
||||||
OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )
|
|
||||||
AND privmsgs_date = " . $inbox_info['oldest_post_time'] . "
|
AND privmsgs_date = " . $inbox_info['oldest_post_time'] . "
|
||||||
AND privmsgs_to_userid = " . $to_userdata['user_id'];
|
AND privmsgs_to_userid = " . $to_userdata['user_id'];
|
||||||
if( !$result = $db->sql_query($sql) )
|
if( !$result = $db->sql_query($sql) )
|
||||||
|
Reference in New Issue
Block a user