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:
commit
08c24fd4fa
|
@ -124,7 +124,7 @@ class Notification extends BaseModule
|
||||||
DI::notify()->setAllSeenForRelatedNotify($Notify);
|
DI::notify()->setAllSeenForRelatedNotify($Notify);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Notify->link) {
|
if ((string)$Notify->link) {
|
||||||
System::externalRedirect($Notify->link);
|
System::externalRedirect($Notify->link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue