1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

- fix pm not_moved/removed retrieval (it was switched)

- cache db-size retrieval (saves a lot of seconds for very large boards)


git-svn-id: file:///svn/phpbb/trunk@8231 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2007-11-07 10:45:38 +00:00
parent 9114de0a0f
commit 8c26e780e3
3 changed files with 8 additions and 6 deletions

View File

@@ -365,7 +365,7 @@ function place_pm_into_folder(&$global_privmsgs_rules, $release = false)
if (!$user->data['user_new_privmsg'])
{
return 0;
return array('not_moved' => 0, 'removed' => 0);
}
$user_message_rules = (int) $user->data['user_message_rules'];
@@ -717,7 +717,7 @@ function place_pm_into_folder(&$global_privmsgs_rules, $release = false)
$num_not_moved = (int) $db->sql_fetchfield('num_messages');
$db->sql_freeresult($result);
return array($num_not_moved, $num_removed);
return array('not_moved' => $num_not_moved, 'removed' => $num_removed);
}
/**