mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
setArticleTags: prevent duplicate tags being assigned if called twice
editTagsDlg: prevent dialot from being submitted twice normalize_categories: filter out empty values that failed validation
This commit is contained in:
@@ -189,6 +189,9 @@ abstract class FeedItem_Common extends FeedItem {
|
||||
return $cat;
|
||||
}, $tmp);
|
||||
|
||||
// remove empty values
|
||||
$tmp = array_filter($tmp, 'strlen');
|
||||
|
||||
asort($tmp);
|
||||
|
||||
return array_unique($tmp);
|
||||
|
||||
Reference in New Issue
Block a user