Closed 3nd0y closed 2 years ago
Need remove comma in this code below
SELECT id, uppercats
FROM '.CATEGORIES_TABLE.'
WHERE id IN ('.implode(',', array_values($category_ids)).')
;';
$uppercats_of = query2array($query, 'id', 'uppercats');
$full_cat_path = array();
$name_of_category = array();
foreach ($uppercats_of as $category_id => $uppercats)
{
$full_cat_path[$category_id] = get_cat_display_name_cache(
$uppercats,
'admin.php?page=album-', # **<- this one**
);
$uppercats = explode(",", $uppercats);
$name_of_category[$category_id] = get_cat_display_name_cache(
end($uppercats),
'admin.php?page=album-', # <- and this one
);
}
}