From fd468f20fd4f5bc54db3659a8567301007c0c1cc Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 25 Mar 2017 13:08:38 +0100 Subject: [PATCH] merged 2 if() into one, closes internal TODO Signed-off-by: Roland Haeder --- include/dfrn.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/dfrn.php b/include/dfrn.php index ca2c2393e7..877b529bad 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -1961,11 +1961,9 @@ class dfrn { */ /// @TODO Maybe merge these if() blocks into one? - if ($is_a_remote_action && $community) { - if ((!$r[0]["forum_mode"]) && (!$r[0]["wall"])) { - $is_a_remote_action = false; - logger("not a community action"); - } + if ($is_a_remote_action && $community && (!$r[0]["forum_mode"]) && (!$r[0]["wall"])) { + $is_a_remote_action = false; + logger("not a community action"); } if ($is_a_remote_action) { -- 2.39.5