diff options
Diffstat (limited to 'app/Models/Context.php')
| -rw-r--r-- | app/Models/Context.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php index b9cc77498..c467ed04f 100644 --- a/app/Models/Context.php +++ b/app/Models/Context.php @@ -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(); |
