mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Revert "Datastore improvements"
This commit is contained in:
parent
b8b52f4d05
commit
27be6863fc
19 changed files with 50 additions and 67 deletions
|
@ -59,7 +59,7 @@ $def_forums = $all_forums;
|
|||
$def_sort = $sort_desc;
|
||||
|
||||
// Moderators data
|
||||
if (!$mod = $datastore->get('moderators') and !$datastore->has('moderators')) {
|
||||
if (!$mod = $datastore->get('moderators')) {
|
||||
$datastore->update('moderators');
|
||||
$mod = $datastore->get('moderators');
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ $users = array($lang['ACTS_LOG_ALL_ACTIONS'] => $all_users) + array_flip($mod['m
|
|||
unset($mod);
|
||||
|
||||
// Forums data
|
||||
if (!$forums = $datastore->get('cat_forums') and !$datastore->has('cat_forums')) {
|
||||
if (!$forums = $datastore->get('cat_forums')) {
|
||||
$datastore->update('cat_forums');
|
||||
$forums = $datastore->get('cat_forums');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue