If-return-return could be simplified.

(cherry picked from commit bcf57cd)
This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:52:25 +03:00 committed by Vasily Komrakov
commit 75990902ae
No known key found for this signature in database
GPG key ID: 558236680C20A69A
2 changed files with 2 additions and 10 deletions

View file

@ -454,11 +454,7 @@ function user_in_group($user_id, $group_id)
$num_rows = DB()->num_rows($result);
DB()->sql_freeresult($result);
if ($num_rows == 0) {
return false;
}
return true;
return !($num_rows == 0);
}
/**