From 4fee0544b742ef97ec2594553ee9d1da1948467d Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 19 Sep 2022 16:44:18 +0200 Subject: [PATCH] related to #1644 synced photos are not orphans anymore. --- admin/picture_modify.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/admin/picture_modify.php b/admin/picture_modify.php index f160b23c5..60c762dc9 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -373,11 +373,8 @@ while ($row = pwg_db_fetch_assoc($result)) { $template->assign('STORAGE_CATEGORY', $name); } - else - { - $related_categories[$row['category_id']] = $name; - $related_categories_ids[] = $row['category_id']; - } + $related_categories[$row['category_id']] = $name; + $related_categories_ids[] = $row['category_id']; } $template->assign('related_categories', $related_categories);