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
This commit is contained in:
flop25 2013-07-09 13:37:42 +00:00
parent 24e202fab0
commit a1b66d8a33

View file

@ -1303,7 +1303,7 @@ SELECT id, uppercats, global_rank, visible, status
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