From 865d4c99985243788c1f535df08eb2c2dad6b9fe Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 4 Dec 2002 16:11:24 +0000 Subject: [PATCH] redirect on save git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3175 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/privmsg.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index d778abe529..514805f1a2 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -899,7 +899,7 @@ else if ( $save && $mark_list && $folder != 'savebox' && $folder != 'outbox' ) message_die(ERROR, 'Invalid_session'); } - if (count($mark_list)) + if (sizeof($mark_list)) { // See if recipient is at their savebox limit $sql = "SELECT COUNT(privmsgs_id) AS savebox_items, MIN(privmsgs_date) AS oldest_post_time @@ -1070,8 +1070,9 @@ else if ( $save && $mark_list && $folder != 'savebox' && $folder != 'outbox' ) { message_die(GENERAL_ERROR, 'Could not save private messages', '', __LINE__, __FILE__, $saved_sql); } - } + redirect("privmsg.$phpEx?folder=savebox"); + } } else if ( $submit || $refresh || $mode != '' ) {