diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 9fcfc7c3..1df4258d 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -986,9 +986,7 @@ function mod_ip(Context $ctx, $cip) { if (hasPermission($config['mod']['view_notes'])) { $note_queries = $ctx->get(IpNoteQueries::class); - $note_queries->getByIp($ip); - - $args['notes'] = $query->fetchAll(PDO::FETCH_ASSOC); + $args['notes'] = $note_queries->getByIp($ip); } if (hasPermission($config['mod']['modlog_ip'])) {