]> git.mxchange.org Git - friendica.git/commitdiff
merged 2 if() into one, closes internal TODO
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 12:08:38 +0000 (13:08 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 12:08:56 +0000 (13:08 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/dfrn.php

index ca2c2393e7887835c035c8a2cacacb38b8ac4ce9..877b529badba4a752379f69c9da081c2ebecba39 100644 (file)
@@ -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) {