Skip to content

Commit

Permalink
bug:2855
Browse files Browse the repository at this point in the history
bug corrected (if that was a virtual album created without parent)

git-svn-id: http://piwigo.org/svn/trunk@23886 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
flop25 committed Jul 9, 2013
1 parent 24e202f commit a1b66d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/include/functions.php
Expand Up @@ -1303,7 +1303,7 @@ function create_virtual_category($category_name, $parent_id=null, $options=array

update_global_rank();

if ('private' == $insert['status'] and ((isset($options['inherit']) and $options['inherit']) or $conf['inheritance_by_default']) )
if ('private' == $insert['status'] and !empty($insert['id_uppercat']) and ((isset($options['inherit']) and $options['inherit']) or $conf['inheritance_by_default']) )
{
$query = '
SELECT group_id
Expand Down

0 comments on commit a1b66d8

Please sign in to comment.