Update admin_forums.php

This commit is contained in:
Roman Kelesidis 2024-01-06 02:31:03 +07:00
parent e6f45ef2b6
commit 6eb657d5b0

View File

@ -552,7 +552,7 @@ 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) $_POST['to_id']; $to_id = (int) isset($_POST['to_id']) ? $_POST['to_id'] : -1;
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))
{ {