mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -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
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue