added curly braces

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

View File

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