Hot Fix Удаление группы
Обнуляйте переменные

Signed-off-by: Dark Nightmare <gtdarknightmare@gmail.com>
This commit is contained in:
Dark Nightmare 2014-08-05 01:11:03 +06:00
commit ee26088b16
2 changed files with 4 additions and 1 deletions

View file

@ -72,6 +72,8 @@ function delete_group ($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');
}

View file

@ -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;
$selected_rg = 0;
$switch_poster_rg_sig = 0;
if ($mode == 'smilies')
{
@ -698,7 +699,7 @@ $template->assign_vars(array(
'MESSAGE' => $message,
'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&amp;postorder=desc" : '',