mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Datastore improvements (#1538)
* Datastore improvements * Updated * Update functions.php * Updated * Updated * Updated * Update index.php * Update index.php * Update index.php * Update index.php * Update viewtopic.php * Update functions.php * Updated * Updated * Revert "Updated" This reverts commit0ff7d4ac60
. * Revert "Updated" This reverts commit8d637dff6c
. * Update index_data.php * Update index_data.php * Update index_data.php * Updated * Update CHANGELOG.md
This commit is contained in:
parent
5971379b6c
commit
c7f2223f7f
19 changed files with 67 additions and 50 deletions
|
@ -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');
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ if ($moderation) {
|
|||
$template->assign_vars(['S_FORUM_SELECT' => $forum_select_html]);
|
||||
}
|
||||
|
||||
if (!$forums = $datastore->get('cat_forums')) {
|
||||
if (!$forums = $datastore->get('cat_forums') and !$datastore->has('cat_forums')) {
|
||||
$datastore->update('cat_forums');
|
||||
$forums = $datastore->get('cat_forums');
|
||||
}
|
||||
|
@ -353,7 +353,7 @@ if ($postrow = DB()->fetch_rowset($sql)) {
|
|||
bb_die($lang['NO_POSTS_TOPIC']);
|
||||
}
|
||||
|
||||
if (!$ranks = $datastore->get('ranks')) {
|
||||
if (!$ranks = $datastore->get('ranks') and !$datastore->has('ranks')) {
|
||||
$datastore->update('ranks');
|
||||
$ranks = $datastore->get('ranks');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue