From 6eb657d5b014f353729ed24d971f30390ce4ba9f Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 6 Jan 2024 02:31:03 +0700 Subject: [PATCH] Update admin_forums.php --- admin/admin_forums.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/admin_forums.php b/admin/admin_forums.php index 5e12b9ad..fdabcea8 100644 --- a/admin/admin_forums.php +++ b/admin/admin_forums.php @@ -552,7 +552,7 @@ 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) isset($_POST['to_id']) ? $_POST['to_id'] : -1; if ($from_id == $to_id || !cat_exists($from_id) || !cat_exists($to_id)) {