Fixed auth(): empty $f_access (#1329)

* Fixed auth(): empty $f_access

* Update functions.php

* Update CHANGELOG.md

* Updated

* Update functions.php

* Update functions.php
This commit is contained in:
Roman Kelesidis 2024-01-21 02:08:13 +07:00 committed by GitHub
commit 3b4fe8008b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 6 deletions

View file

@ -64,13 +64,12 @@ if (!isset($_REQUEST['dosearch'])) {
}
$forums = [];
$last_cat_id = -1;
$forums_list = '';
if (DB()->num_rows($result) != 0) {
$template->assign_block_vars('forums_exist', []);
$last_cat_id = -1;
$forums_list = '';
while ($row = DB()->sql_fetchrow($result)) {
if ($row['cat_id'] != $last_cat_id) {
$forums_list .= '<optgroup label="' . htmlCHR($row['cat_title']) . '">';