aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-07-09 13:37:42 +0000
committerflop25 <flop25@piwigo.org>2013-07-09 13:37:42 +0000
commita1b66d8a3325043ff5d2a3eb4788b4f06c8e6392 (patch)
treec740a2a95be5a45423a874cfffe07bd6e6c3d87d
parent24e202fab03bcae57a5b90d2137500bd677411a7 (diff)
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
-rw-r--r--admin/include/functions.php2
1 files changed, 1 insertions, 1 deletions
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