From a1b66d8a3325043ff5d2a3eb4788b4f06c8e6392 Mon Sep 17 00:00:00 2001 From: flop25 Date: Tue, 9 Jul 2013 13:37:42 +0000 Subject: bug:2855 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 --- admin/include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/include/functions.php') diff --git a/admin/include/functions.php b/admin/include/functions.php index 3a81372a0..9153f69bd 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -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 -- cgit v1.2.3