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
|
@ -181,7 +181,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) {
|
|||
bb_die($lang['NO_SUCH_USER']);
|
||||
}
|
||||
|
||||
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');
|
||||
}
|
||||
|
@ -300,7 +300,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) {
|
|||
bb_die($lang['GROUP_NOT_EXIST']);
|
||||
}
|
||||
|
||||
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