Check if the string representation of Notify->link is empty in Module\Notifications\Notification

- The property is a Url object which will always return true when tested for truthy value
pull/10816/head
Hypolite Petovan 2021-10-03 11:34:23 -04:00
rodzic de96b302b7
commit e91ba2b992
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -124,7 +124,7 @@ class Notification extends BaseModule
DI::notify()->setAllSeenForRelatedNotify($Notify);
}
if ($Notify->link) {
if ((string)$Notify->link) {
System::externalRedirect($Notify->link);
}