mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
parent
f456c827d7
commit
f48e7121df
3 changed files with 11 additions and 3 deletions
|
@ -517,7 +517,11 @@ if ($mode) {
|
|||
case 'movedelcat':
|
||||
// Move or delete a category in the DB
|
||||
$from_id = (int)$_POST['from_id'];
|
||||
$to_id = (int)$_POST['to_id'];
|
||||
$to_id = (int)$_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)) {
|
||||
bb_die('Bad input');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue