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
ad0f548b74
commit
6029e6a8a6
@ -553,9 +553,10 @@ if ($mode)
|
|||||||
case 'movedelcat':
|
case 'movedelcat':
|
||||||
// Move or delete a category in the DB
|
// Move or delete a category in the DB
|
||||||
$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) @$_POST['to_id'];
|
||||||
|
|
||||||
if ($to_id == -1)
|
// Ошибка: Некуда переносить содержимое категории (Защита от удаления последней оставшейся категории в списке)
|
||||||
|
if ($to_id == 0)
|
||||||
{
|
{
|
||||||
bb_die($lang['NOWHERE_TO_MOVE']);
|
bb_die($lang['NOWHERE_TO_MOVE']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user