aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-09-23 15:32:14 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-09-23 15:32:14 +0200
commitef9e0e743a5d2961bf578a21d27014b101db8a21 (patch)
tree42a3b11ea3b9db2127c31619f53c62b940b0838a /phpBB
parent05ae3275539ab514f9742e5f38eef9c56b6b53b9 (diff)
parentbfb672f3268b022ead1bd4249c37bc77d7a920f8 (diff)
downloadforums-ef9e0e743a5d2961bf578a21d27014b101db8a21.tar
forums-ef9e0e743a5d2961bf578a21d27014b101db8a21.tar.gz
forums-ef9e0e743a5d2961bf578a21d27014b101db8a21.tar.bz2
forums-ef9e0e743a5d2961bf578a21d27014b101db8a21.tar.xz
forums-ef9e0e743a5d2961bf578a21d27014b101db8a21.zip
Merge pull request #2937 from Senky/ticket/13027
[ticket/13027] PM folder full percentage could be a bit more accurate
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_privmsgs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 29cea477e4..ad142b1cca 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1573,7 +1573,7 @@ function get_folder_status($folder_id, $folder)
'cur' => $folder['num_messages'],
'remaining' => ($user->data['message_limit']) ? $user->data['message_limit'] - $folder['num_messages'] : 0,
'max' => $user->data['message_limit'],
- 'percent' => ($user->data['message_limit']) ? (($user->data['message_limit'] > 0) ? round(($folder['num_messages'] / $user->data['message_limit']) * 100) : 100) : 0,
+ 'percent' => ($user->data['message_limit']) ? (($user->data['message_limit'] > 0) ? floor(($folder['num_messages'] / $user->data['message_limit']) * 100) : 100) : 0,
);
$return['message'] = $user->lang('FOLDER_STATUS_MSG', $user->lang('MESSAGES_COUNT', (int) $return['max']), $return['cur'], $return['percent']);