Skip to content

Commit

Permalink
merge r4400 from branch 2.0 to trunk
Browse files Browse the repository at this point in the history
bug 1301 fixed: it is now possible to move root category 4 into root category
49. Sometimes a single comma makes a huge difference!


git-svn-id: http://piwigo.org/svn/trunk@4401 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Dec 1, 2009
1 parent f7222bf commit b8c33dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/include/functions.php
Expand Up @@ -1027,7 +1027,7 @@ function move_categories($category_ids, $new_parent = -1)
{
// 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'],
Expand Down

0 comments on commit b8c33dc

Please sign in to comment.