diff --git a/Web/Models/Entities/Traits/TIgnorable.php b/Web/Models/Entities/Traits/TIgnorable.php index b55ea926b..3e21420b7 100644 --- a/Web/Models/Entities/Traits/TIgnorable.php +++ b/Web/Models/Entities/Traits/TIgnorable.php @@ -5,8 +5,11 @@ trait TIgnorable { - function isIgnoredBy(User $user): bool + function isIgnoredBy(User $user = NULL): bool { + if(!$user) + return false; + $ctx = DatabaseConnection::i()->getContext(); $data = [ "owner" => $user->getId(),