merged 2 if() into one, closes internal TODO

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-03-25 13:08:38 +01:00
parent 47ae5a9a47
commit fd468f20fd
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -1961,12 +1961,10 @@ class dfrn {
*/ */
/// @TODO Maybe merge these if() blocks into one? /// @TODO Maybe merge these if() blocks into one?
if ($is_a_remote_action && $community) { if ($is_a_remote_action && $community && (!$r[0]["forum_mode"]) && (!$r[0]["wall"])) {
if ((!$r[0]["forum_mode"]) && (!$r[0]["wall"])) {
$is_a_remote_action = false; $is_a_remote_action = false;
logger("not a community action"); logger("not a community action");
} }
}
if ($is_a_remote_action) { if ($is_a_remote_action) {
return DFRN_REPLY_RC; return DFRN_REPLY_RC;