Update viewtopic.php

This commit is contained in:
Roman Kelesidis 2024-07-13 13:52:15 +07:00
commit 4179a4d3de

View file

@ -195,7 +195,7 @@ if ($is_auth['auth_mod']) {
if ($moderation) {
if (IS_ADMIN) {
if (!$forum_select = $datastore->get('viewtopic_forum_select')) {
if (!$forum_select = $datastore->get('viewtopic_forum_select') and !$datastore->has('viewtopic_forum_select')) {
$datastore->update('viewtopic_forum_select');
$forum_select = $datastore->get('viewtopic_forum_select');
}