diff --git a/ajax.php b/ajax.php
index af86c1355..8b595440e 100644
--- a/ajax.php
+++ b/ajax.php
@@ -12,6 +12,7 @@ define('IN_AJAX', true);
require __DIR__ . '/common.php';
+// Init Ajax class
$ajax = new TorrentPier\Ajax();
$ajax->init();
diff --git a/feed.php b/feed.php
index ed975b5df..31443fc10 100644
--- a/feed.php
+++ b/feed.php
@@ -11,6 +11,7 @@ define('BB_SCRIPT', 'feed');
require __DIR__ . '/common.php';
+// Init userdata
$user->session_start(array('req_login' => true));
$mode = $_REQUEST['mode'] ?? '';
diff --git a/group.php b/group.php
index 2eb6fb376..c8e925121 100644
--- a/group.php
+++ b/group.php
@@ -17,6 +17,7 @@ $page_cfg['use_tablesorter'] = true;
$s_member_groups = $s_pending_groups = $s_member_groups_opt = $s_pending_groups_opt = '';
$select_sort_mode = $select_sort_order = '';
+// Init userdata
$user->session_start(array('req_login' => true));
set_die_append_msg();
diff --git a/library/includes/page_footer_dev.php b/library/includes/page_footer_dev.php
index af3572452..ae26e7143 100644
--- a/library/includes/page_footer_dev.php
+++ b/library/includes/page_footer_dev.php
@@ -71,10 +71,10 @@ if (!empty($_COOKIE['explain'])) {
}
}
-$sql_log = !empty($_COOKIE['sql_log']) ? \TorrentPier\Dev::get_sql_log() : '';
+$sql_log = !empty($_COOKIE['sql_log']) ? \TorrentPier\Dev::get_sql_log() : false;
if ($sql_log) {
- echo '
' . ($sql_log ?: '') . '
';
+ echo '' . $sql_log . '
';
}
?>
diff --git a/login.php b/login.php
index dcfa71de2..15b96f6fc 100644
--- a/login.php
+++ b/login.php
@@ -14,6 +14,7 @@ require __DIR__ . '/common.php';
array_deep($_POST, 'trim');
+// Start session management
$user->session_start();
// Logout
diff --git a/poll.php b/poll.php
index 4455c15e1..bd60286f1 100644
--- a/poll.php
+++ b/poll.php
@@ -11,6 +11,7 @@ define('BB_SCRIPT', 'vote');
require __DIR__ . '/common.php';
+// Start session management
$user->session_start(array('req_login' => true));
$mode = (string)@$_POST['mode'];
diff --git a/privmsg.php b/privmsg.php
index 5e54d5de9..9bc40103b 100644
--- a/privmsg.php
+++ b/privmsg.php
@@ -224,7 +224,7 @@ if ($mode == 'read') {
}
//
- // This makes a copy of the post and stores it as a SENT message from the sendee. Perhaps
+ // This makes a copy of the post and stores it as a sent message from the sender. Perhaps
// not the most DB friendly way but a lot easier to manage, besides the admin will be able to
// set limits on numbers of storable posts for users ... hopefully!
//
diff --git a/search.php b/search.php
index 04d5ab31b..714c2af12 100644
--- a/search.php
+++ b/search.php
@@ -18,6 +18,7 @@ $page_cfg['load_tpl_vars'] = array(
'topic_icons',
);
+// Start session management
$user->session_start(array('req_login' => $bb_cfg['disable_search_for_guest']));
set_die_append_msg();