more curly braces
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
6ff0b15873
commit
0319517f94
1 changed files with 2 additions and 1 deletions
|
@ -1155,8 +1155,9 @@ function format_like($cnt, array $arr, $type, $id) {
|
||||||
|
|
||||||
if ($cnt > 1) {
|
if ($cnt > 1) {
|
||||||
$total = count($arr);
|
$total = count($arr);
|
||||||
if ($total >= MAX_LIKERS)
|
if ($total >= MAX_LIKERS) {
|
||||||
$arr = array_slice($arr, 0, MAX_LIKERS - 1);
|
$arr = array_slice($arr, 0, MAX_LIKERS - 1);
|
||||||
|
}
|
||||||
if ($total < MAX_LIKERS) {
|
if ($total < MAX_LIKERS) {
|
||||||
$last = t('and') . ' ' . $arr[count($arr)-1];
|
$last = t('and') . ' ' . $arr[count($arr)-1];
|
||||||
$arr2 = array_slice($arr, 0, -1);
|
$arr2 = array_slice($arr, 0, -1);
|
||||||
|
|
Loading…
Reference in a new issue