bug 2142 fixed: make sure you cannot move a category into itself
git-svn-id: http://piwigo.org/svn/branches/2.1@8966 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
e02e7dd116
commit
4673305bb0
1 changed files with 1 additions and 1 deletions
|
@ -1040,7 +1040,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'],
|
||||
|
|
Loading…
Add table
Reference in a new issue