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
This commit is contained in:
parent
de96b302b7
commit
e91ba2b992
1 changed files with 1 additions and 1 deletions
|
@ -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