mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-10 15:32:29 +01:00
merge r8966 from branch 2.1 to trunk
bug 2142 fixed: make sure you cannot move a category into itself git-svn-id: http://piwigo.org/svn/trunk@8967 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
ec169f12ff
commit
92fe29daa7
1 file changed
+1
-1
@@ -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'],
|
||||
|
||||
Reference in new issue
Block a user