From 3a8a7f13bf617879352c31b314aee684c291f494 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 1 Mar 2025 23:25:39 +0100 Subject: [PATCH] pages.php: fix wrong variable --- inc/mod/pages.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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'])) {