mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update admin_forums.php
This commit is contained in:
parent
6eb657d5b0
commit
4cf179b3cc
@ -554,6 +554,11 @@ if ($mode)
|
|||||||
$from_id = (int) $_POST['from_id'];
|
$from_id = (int) $_POST['from_id'];
|
||||||
$to_id = (int) isset($_POST['to_id']) ? $_POST['to_id'] : -1;
|
$to_id = (int) isset($_POST['to_id']) ? $_POST['to_id'] : -1;
|
||||||
|
|
||||||
|
if ($to_id == -1)
|
||||||
|
{
|
||||||
|
bb_die($lang['NOWHERE_TO_MOVE']);
|
||||||
|
}
|
||||||
|
|
||||||
if ($from_id == $to_id || !cat_exists($from_id) || !cat_exists($to_id))
|
if ($from_id == $to_id || !cat_exists($from_id) || !cat_exists($to_id))
|
||||||
{
|
{
|
||||||
bb_die('Bad input');
|
bb_die('Bad input');
|
||||||
|
Loading…
Reference in New Issue
Block a user