Minor improvements (#882)

* Minor improvements

* Updated

* Updated

* Updated

* Update privmsg.php

* Updated

* Update admin_attach_cp.php
This commit is contained in:
Roman Kelesidis 2023-09-04 01:01:01 +07:00 committed by GitHub
commit 4b453de64a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 699 additions and 735 deletions

View file

@ -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;