From bc5d1015b326d9332e15e32fc97a88b071c5f1a7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 8 Apr 2017 20:03:21 +0200 Subject: [PATCH] added curly braces Signed-off-by: Roland Haeder --- include/conversation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 09fc682b84..eddc718226 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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)) {