Prevent privmsg.php doing a full join between privmsgs and users table if no folder specified

git-svn-id: file:///svn/phpbb/trunk@1726 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2001-12-27 15:04:43 +00:00
parent 46ea2a6ddb
commit 07b0b78e04

View file

@ -1743,6 +1743,8 @@ switch($folder)
AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . "
AND u.user_id = pm.privmsgs_from_userid ) )";
break;
default:
message_die(GENERAL_ERROR, "Could not query private message information. No folder specified.", "", __LINE__, __FILE__, $sql);
}
//
@ -2010,4 +2012,4 @@ $template->pparse("body");
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
?>