1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

oops, box limits only came into affect after they've been exceeded, corrected.

git-svn-id: file:///svn/phpbb/trunk@1713 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-12-24 18:42:48 +00:00
parent fd62afbf4c
commit e3893c4cf9

View File

@ -298,7 +298,7 @@ else if( $mode == "read" )
{
$sent_info = $db->sql_fetchrow($result);
if( $sent_info['sent_items'] > $board_config['max_sentbox_privmsgs'] )
if( $sent_info['sent_items'] >= $board_config['max_sentbox_privmsgs'] )
{
$sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . "
WHERE privmsgs_type = " . PRIVMSGS_SENT_MAIL . "
@ -743,7 +743,7 @@ else if( $save && $mark_list && $folder != "savebox" && $folder != "outbox")
{
$saved_info = $db->sql_fetchrow($result);
if( $saved_info['savebox_items'] > $board_config['max_savebox_privmsgs'] )
if( $saved_info['savebox_items'] >= $board_config['max_savebox_privmsgs'] )
{
$sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . "
WHERE ( ( privmsgs_to_userid = " . $userdata['user_id'] . "
@ -979,7 +979,7 @@ else if( $submit || $refresh || $mode != "" )
{
$inbox_info = $db->sql_fetchrow($result);
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 . "
WHERE ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . "