This commit is contained in:
Denis Duliçi 2022-06-14 22:48:06 +03:00
parent 39ec0617ed
commit 9f856902d9

View File

@ -27,7 +27,13 @@ class Favorites extends Component
foreach ($favorites as $favorite) {
$favorite['active'] = false;
$favorite['url'] = $this->getUrl($favorite);
try {
$favorite['url'] = $this->getUrl($favorite);
} catch (\Exception $e) {
continue;
}
$favorite['id'] = $this->getId($favorite);
if ($this->isActive($favorite['url'])) {