From eacb345c7096e26c26628aa310ee70ee944f3f9a Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sun, 17 Nov 2024 15:11:03 -0500 Subject: [PATCH] Only show notificaiton in alert window for logged in user and increase the limit from 5 to 8 --- top_nav.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/top_nav.php b/top_nav.php index 1c5e3765..276bc203 100644 --- a/top_nav.php +++ b/top_nav.php @@ -65,8 +65,8 @@ $sql_notifications = 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 LIMIT 5" + AND notification_user_id = $session_user_id + ORDER BY notification_id DESC LIMIT 8" ); ?>