]> git.mxchange.org Git - friendica.git/commitdiff
more curly braces
authorRoland Haeder <roland@mxchange.org>
Sat, 8 Apr 2017 18:06:48 +0000 (20:06 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 8 Apr 2017 18:06:56 +0000 (20:06 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/conversation.php

index 888c0b58bf093a5d8a8662044449359b78e784d1..a737c98c5f153ef715a28e27a63a9ecb024dd2f2 100644 (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);