-
-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working on #2972 Template Conversion to Twig Format (managegroup.php) #3018
Working on #2972 Template Conversion to Twig Format (managegroup.php) #3018
Conversation
managegroup.php
Outdated
ORDER BY u.username ASC | ||
"); | ||
while ($user = $db->fetch_array($query)) { | ||
$user['reason'] = htmlspecialchars_uni($user['reason']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of htmlspecialchars_uni()
here (and perhaps below?) will cause double escaping.
managegroup.php
Outdated
|
||
if ($usergroup['type'] == 5) { | ||
$usergroup['usergrouptype'] = $lang->group_public_invite; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be } else if (...
.
managegroup.php
Outdated
WHERE g.gid = '{$gid}' | ||
"); | ||
|
||
$leaders_array = array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with the below $leaders = []
, can you use square brackets here too to initialise the array?
managegroup.php
Outdated
$leaders_array[] = $leader['uid']; | ||
|
||
// Get commas... | ||
if ($loop != $leader_count) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic could be done in the view itself, using the loop.last
variable.
All changes have been made |
#2972 for managegroup.php