mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Minor improvements (#882)
* Minor improvements * Updated * Updated * Updated * Update privmsg.php * Updated * Update admin_attach_cp.php
This commit is contained in:
parent
2c07660435
commit
4b453de64a
75 changed files with 699 additions and 735 deletions
|
@ -31,7 +31,7 @@ if (!isset($_REQUEST['dosearch'])) {
|
|||
$group_list = '';
|
||||
|
||||
if (DB()->num_rows($result) != 0) {
|
||||
$template->assign_block_vars('groups_exist', array());
|
||||
$template->assign_block_vars('groups_exist', []);
|
||||
|
||||
while ($row = DB()->sql_fetchrow($result)) {
|
||||
$group_list .= '<option value="' . $row['group_id'] . '">' . strip_tags(htmlspecialchars($row['group_name'])) . '</option>';
|
||||
|
@ -44,7 +44,7 @@ if (!isset($_REQUEST['dosearch'])) {
|
|||
}
|
||||
$rank_select_box = '';
|
||||
if (DB()->num_rows($result) != 0) {
|
||||
$template->assign_block_vars('ranks_exist', array());
|
||||
$template->assign_block_vars('ranks_exist', []);
|
||||
while ($row = DB()->sql_fetchrow($result)) {
|
||||
$rank = $row['rank_title'];
|
||||
$rank_id = $row['rank_id'];
|
||||
|
@ -63,10 +63,10 @@ if (!isset($_REQUEST['dosearch'])) {
|
|||
bb_die('Could not select forum data');
|
||||
}
|
||||
|
||||
$forums = array();
|
||||
$forums = [];
|
||||
|
||||
if (DB()->num_rows($result) != 0) {
|
||||
$template->assign_block_vars('forums_exist', array());
|
||||
$template->assign_block_vars('forums_exist', []);
|
||||
|
||||
$last_cat_id = -1;
|
||||
$forums_list = '';
|
||||
|
@ -912,7 +912,7 @@ if (!isset($_REQUEST['dosearch'])) {
|
|||
|
||||
unset($banned);
|
||||
|
||||
$banned = array();
|
||||
$banned = [];
|
||||
|
||||
while ($row = DB()->sql_fetchrow($result)) {
|
||||
$banned[$row['user_id']] = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue