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

@ -222,7 +222,7 @@ if (!empty($bb_cfg['page']['show_torhelp'][BB_SCRIPT]) && !empty($userdata['torh
WHERE topic_id IN(" . $userdata['torhelp'] . ")
LIMIT 8
";
$torhelp_topics = array();
$torhelp_topics = [];
foreach (DB()->fetch_rowset($sql) as $row) {
$torhelp_topics[] = '<a href="viewtopic.php?t=' . $row['topic_id'] . '">' . $row['topic_title'] . '</a>';
@ -236,7 +236,7 @@ if (!empty($bb_cfg['page']['show_torhelp'][BB_SCRIPT]) && !empty($userdata['torh
// Login box
$in_out = ($logged_in) ? 'in' : 'out';
$template->assign_block_vars("switch_user_logged_{$in_out}", array());
$template->assign_block_vars("switch_user_logged_{$in_out}", []);
if (!IS_GUEST) {
header('Cache-Control: private, pre-check=0, post-check=0, max-age=0');