1
0
Fork 0

Merge pull request #10816 from MrPetovan/task/refactor-notifications

Check if the string representation of Notify->link is empty in Module\Notifications\Notification
This commit is contained in:
Tobias Diekershoff 2021-10-03 17:39:14 +02:00 committed by GitHub
commit 08c24fd4fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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