From: Roland Haeder Date: Sat, 25 Mar 2017 12:08:38 +0000 (+0100) Subject: merged 2 if() into one, closes internal TODO X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fd468f20fd4f5bc54db3659a8567301007c0c1cc;p=friendica.git merged 2 if() into one, closes internal TODO Signed-off-by: Roland Haeder --- 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) {