mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
If-return-return could be simplified.
(cherry picked from commit bcf57cd
)
This commit is contained in:
parent
b9330f6aae
commit
75990902ae
2 changed files with 2 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue