aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-12-24 18:42:48 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-12-24 18:42:48 +0000
commite3893c4cf9ee47f75bbfd885020b4e352d4fc284 (patch)
treeb534e5f859a7a5205c84fac60fb98fc1df78f9b3
parentfd62afbf4cbeee1cbbbeaa216947d6121d494d35 (diff)
downloadforums-e3893c4cf9ee47f75bbfd885020b4e352d4fc284.tar
forums-e3893c4cf9ee47f75bbfd885020b4e352d4fc284.tar.gz
forums-e3893c4cf9ee47f75bbfd885020b4e352d4fc284.tar.bz2
forums-e3893c4cf9ee47f75bbfd885020b4e352d4fc284.tar.xz
forums-e3893c4cf9ee47f75bbfd885020b4e352d4fc284.zip
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
-rw-r--r--phpBB/privmsg.php6
1 files 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 . "