From c9b38b2b5fbefc57da51981cbb3c20b0946e81d5 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sun, 17 Nov 2024 15:14:40 -0500 Subject: [PATCH] Show only logged in user notifications --- notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications.php b/notifications.php index de787326..ab9806e8 100644 --- a/notifications.php +++ b/notifications.php @@ -3,7 +3,7 @@ require_once "inc_all.php"; -$sql = mysqli_query($mysqli, "SELECT * FROM notifications LEFT JOIN clients ON notification_client_id = client_id WHERE notification_dismissed_at IS NULL AND (notification_user_id = $session_user_id OR notification_user_id = 0) ORDER BY notification_id DESC"); +$sql = mysqli_query($mysqli, "SELECT * FROM notifications LEFT JOIN clients ON notification_client_id = client_id WHERE notification_dismissed_at IS NULL AND notification_user_id = $session_user_id ORDER BY notification_id DESC"); ?>