From: Hypolite Petovan Date: Sun, 3 Oct 2021 15:34:23 +0000 (-0400) Subject: Check if the string representation of Notify->link is empty in Module\Notifications... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e91ba2b9929a532e6a313a7786a082e76b835aac;p=friendica.git 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 --- diff --git a/src/Module/Notifications/Notification.php b/src/Module/Notifications/Notification.php index 2480e63b0b..19ee410d28 100644 --- a/src/Module/Notifications/Notification.php +++ b/src/Module/Notifications/Notification.php @@ -124,7 +124,7 @@ class Notification extends BaseModule DI::notify()->setAllSeenForRelatedNotify($Notify); } - if ($Notify->link) { + if ((string)$Notify->link) { System::externalRedirect($Notify->link); }