mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
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:
parent
46ea2a6ddb
commit
07b0b78e04
1 changed files with 3 additions and 1 deletions
|
@ -1743,6 +1743,8 @@ switch($folder)
|
||||||
AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . "
|
AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . "
|
||||||
AND u.user_id = pm.privmsgs_from_userid ) )";
|
AND u.user_id = pm.privmsgs_from_userid ) )";
|
||||||
break;
|
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);
|
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue