aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2014-09-09 21:33:19 +0200
committerJakub Senko <jakubsenko@gmail.com>2014-09-09 21:33:19 +0200
commitbfb672f3268b022ead1bd4249c37bc77d7a920f8 (patch)
treeaa1346684761aed7f787e50891cf724a85c2c1df /phpBB/includes/functions_privmsgs.php
parent65026ed1faa3f92c671082fc17901030de71d107 (diff)
downloadforums-bfb672f3268b022ead1bd4249c37bc77d7a920f8.tar
forums-bfb672f3268b022ead1bd4249c37bc77d7a920f8.tar.gz
forums-bfb672f3268b022ead1bd4249c37bc77d7a920f8.tar.bz2
forums-bfb672f3268b022ead1bd4249c37bc77d7a920f8.tar.xz
forums-bfb672f3268b022ead1bd4249c37bc77d7a920f8.zip
[ticket/13027] round to floor
PHPBB3-13027
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-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']);