more curly braces

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-04-08 20:06:48 +02:00
parent 6ff0b15873
commit 0319517f94
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 2 additions and 1 deletions

View File

@ -1155,8 +1155,9 @@ function format_like($cnt, array $arr, $type, $id) {
if ($cnt > 1) {
$total = count($arr);
if ($total >= MAX_LIKERS)
if ($total >= MAX_LIKERS) {
$arr = array_slice($arr, 0, MAX_LIKERS - 1);
}
if ($total < MAX_LIKERS) {
$last = t('and') . ' ' . $arr[count($arr)-1];
$arr2 = array_slice($arr, 0, -1);