related to #1644 synced photos are not orphans anymore.

This commit is contained in:
Matthieu Leproux
2022-09-19 16:44:18 +02:00
parent b470b2b360
commit 4fee0544b7

View File

@@ -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);