diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-09-23 15:32:14 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-09-23 15:32:14 +0200 |
| commit | ef9e0e743a5d2961bf578a21d27014b101db8a21 (patch) | |
| tree | 42a3b11ea3b9db2127c31619f53c62b940b0838a /phpBB | |
| parent | 05ae3275539ab514f9742e5f38eef9c56b6b53b9 (diff) | |
| parent | bfb672f3268b022ead1bd4249c37bc77d7a920f8 (diff) | |
| download | forums-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.php | 2 |
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']); |
