diff --git a/Web/Models/Entities/Traits/TIgnorable.php b/Web/Models/Entities/Traits/TIgnorable.php index b55ea926..3e21420b 100644 --- a/Web/Models/Entities/Traits/TIgnorable.php +++ b/Web/Models/Entities/Traits/TIgnorable.php @@ -5,8 +5,11 @@ use openvk\Web\Models\Entities\User; 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(),