From e3893c4cf9ee47f75bbfd885020b4e352d4fc284 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 24 Dec 2001 18:42:48 +0000 Subject: [PATCH] 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 --- phpBB/privmsg.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index e816b33796..bbbb20fbd6 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -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 . "