aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 409cf43a0..f736902b0 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1135,7 +1135,7 @@ SELECT uppercats
{
// technically, you can't move a category with uppercats 12,125,13,14
// into a new parent category with uppercats 12,125,13,14,24
- if (preg_match('/^'.$category['uppercats'].',/', $new_parent_uppercats))
+ if (preg_match('/^'.$category['uppercats'].'(,|$)/', $new_parent_uppercats))
{
array_push(
$page['errors'],