mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
major speed boost for Oracle :D This took a while, every call to sql_query_limit() was checked out for having any implicit/explicit column issues... Hopefully, nothing has changed :D git-svn-id: file:///svn/phpbb/trunk@6631 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -131,7 +131,7 @@ function compose_pm($id, $mode, $action)
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = 'SELECT t.*, p.*, u.username as quote_username
|
||||
$sql = 'SELECT t.folder_id, p.*, u.username as quote_username
|
||||
FROM ' . PRIVMSGS_TO_TABLE . ' t, ' . PRIVMSGS_TABLE . ' p, ' . USERS_TABLE . ' u
|
||||
WHERE t.user_id = ' . $user->data['user_id'] . "
|
||||
AND p.author_id = u.user_id
|
||||
@@ -147,7 +147,7 @@ function compose_pm($id, $mode, $action)
|
||||
}
|
||||
|
||||
// check for outbox (not read) status, we do not allow editing if one user already having the message
|
||||
$sql = 'SELECT p.*, t.*
|
||||
$sql = 'SELECT p.*, t.folder_id
|
||||
FROM ' . PRIVMSGS_TO_TABLE . ' t, ' . PRIVMSGS_TABLE . ' p
|
||||
WHERE t.user_id = ' . $user->data['user_id'] . '
|
||||
AND t.folder_id = ' . PRIVMSGS_OUTBOX . "
|
||||
|
Reference in New Issue
Block a user