mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-26 21:18:42 -04:00
Fix regression labels (#7150)
Regression from https://github.com/FreshRSS/FreshRSS/pull/7131
This commit is contained in:
1 parent
b1d24fbdb7
commit
bbd81b3e7e
1 file changed
+5
-1
@@ -471,7 +471,11 @@ final class FreshRSS_Context {
|
||||
}
|
||||
}
|
||||
if ($tag === null) {
|
||||
throw new FreshRSS_Context_Exception('Invalid tag: ' . $id);
|
||||
$tagDAO = FreshRSS_Factory::createTagDao();
|
||||
$tag = $tagDAO->searchById($id);
|
||||
if ($tag === null) {
|
||||
throw new FreshRSS_Context_Exception('Invalid tag: ' . $id);
|
||||
}
|
||||
}
|
||||
self::$name = $tag->name();
|
||||
self::$get_unread = $tag->nbUnread();
|
||||
|
||||
Reference in new issue
Block a user