Skip to content
Permalink
Browse files

fixes #1099 avoid JS error when there is no album associated to curre…

…nt photo set
  • Loading branch information...
plegall committed Oct 14, 2019
1 parent ac5d00e commit e49c217441814f5ed388006e496a6324600c7581
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/batch_manager_global.php
@@ -546,6 +546,8 @@
// Dissociate from a category : categories listed for dissociation can only
// represent virtual links. We can't create orphans. Links to physical
// categories can't be broken.
$associated_categories = array();
if (count($page['cat_elements_id']) > 0)
{
$query = '
@@ -560,9 +562,11 @@
)
;';
$template->assign('associated_categories', query2array($query, 'id', 'id'));
$associated_categories = query2array($query, 'id', 'id');
}
$template->assign('associated_categories', $associated_categories);
if (count($page['cat_elements_id']) > 0)
{
// remove tags

0 comments on commit e49c217

Please sign in to comment.
You can’t perform that action at this time.