mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
R593
Hot Fix Удаление группы Обнуляйте переменные Signed-off-by: Dark Nightmare <gtdarknightmare@gmail.com>
This commit is contained in:
parent
090b886dc1
commit
ee26088b16
2 changed files with 4 additions and 1 deletions
|
@ -72,6 +72,8 @@ function delete_group ($group_id)
|
||||||
WHERE ug.group_id = $group_id
|
WHERE ug.group_id = $group_id
|
||||||
");
|
");
|
||||||
|
|
||||||
|
DB()->query("UPDATE ". BB_POSTS . " SET attach_poster_rg_sig = 0, poster_rg_id = 0 WHERE poster_rg_id = ". $group_id);
|
||||||
|
|
||||||
update_user_level('all');
|
update_user_level('all');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ $topic_type = (@$_POST['topictype']) ? (int) $_POST['topictype'] : POST_NORMAL;
|
||||||
$topic_type = in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ? $topic_type : POST_NORMAL;
|
$topic_type = in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ? $topic_type : POST_NORMAL;
|
||||||
|
|
||||||
$selected_rg = 0;
|
$selected_rg = 0;
|
||||||
|
$switch_poster_rg_sig = 0;
|
||||||
|
|
||||||
if ($mode == 'smilies')
|
if ($mode == 'smilies')
|
||||||
{
|
{
|
||||||
|
@ -698,7 +699,7 @@ $template->assign_vars(array(
|
||||||
'MESSAGE' => $message,
|
'MESSAGE' => $message,
|
||||||
|
|
||||||
'POSTER_RELEASE_GROUPS' => ($poster_release_groups) ? $poster_release_groups : '',
|
'POSTER_RELEASE_GROUPS' => ($poster_release_groups) ? $poster_release_groups : '',
|
||||||
'ATTACH_POSTER_RG_SIG' => $switch_poster_rg_sig,
|
'ATTACH_POSTER_RG_SIG' => ($switch_poster_rg_sig) ? $switch_poster_rg_sig : false,
|
||||||
|
|
||||||
'U_VIEWTOPIC' => ( $mode == 'reply' ) ? "viewtopic.php?" . POST_TOPIC_URL . "=$topic_id&postorder=desc" : '',
|
'U_VIEWTOPIC' => ( $mode == 'reply' ) ? "viewtopic.php?" . POST_TOPIC_URL . "=$topic_id&postorder=desc" : '',
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue