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

index 09fc682b846bb691af3e066511583659e92ea3b0..eddc718226d04a13e7ef67667fef4c428f1181fd 100644 (file)
@@ -374,8 +374,9 @@ function count_descendants($item) {
 
        if ($total > 0) {
                foreach ($item['children'] as $child) {
-                       if (! visible_activity($child))
+                       if (! visible_activity($child)) {
                                $total --;
+                       }
                        $total += count_descendants($child);
                }
        }
@@ -389,7 +390,6 @@ function visible_activity($item) {
         * likes (etc.) can apply to other things besides posts. Check if they are post children,
         * in which case we handle them specially
         */
-
        $hidden_activities = array(ACTIVITY_LIKE, ACTIVITY_DISLIKE, ACTIVITY_ATTEND, ACTIVITY_ATTENDNO, ACTIVITY_ATTENDMAYBE);
        foreach ($hidden_activities as $act) {
                if (activity_match($item['verb'],$act)) {