]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Unused "use" removed
[friendica.git] / include / enotify.php
index 89a81833d08308bfea5ed3303f6a9f2fac242118..6b3171dda6d6cd2102ae9035cbd746201602a79a 100644 (file)
@@ -479,6 +479,11 @@ function notification($params)
                        'otype'         => $params['otype'] ?? '',
                ]);
 
+               // Notification insertion can be intercepted by an addon registering the 'enotify_store' hook
+               if (!$notification) {
+                       return false;
+               }
+
                $notification->msg = Renderer::replaceMacros($epreamble, ['$itemlink' => $notification->link]);
 
                DI::notify()->update($notification);