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
1 changed files with 3 additions and 5 deletions

View 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) {