From 4529a56d7b43140749d3723543bd762455b6bfb9 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 27 Feb 2025 11:22:02 -0500 Subject: [PATCH] Fix Sort Newest to oldest in notifications --- ajax/ajax_notifications.php | 50 +++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/ajax/ajax_notifications.php b/ajax/ajax_notifications.php index 1dd53356..f15f5782 100644 --- a/ajax/ajax_notifications.php +++ b/ajax/ajax_notifications.php @@ -1,11 +1,13 @@ - - while ($row = mysqli_fetch_array($sql)) { - $notification_id = intval($row['notification_id']); - $notification_type = nullable_htmlentities($row['notification_type']); - $notification_details = nullable_htmlentities($row['notification']); - $notification_action = nullable_htmlentities($row['notification_action']); - $notification_timestamp_formated = date('M d g:ia',strtotime($row['notification_timestamp'])); - $notification_client_id = intval($row['notification_client_id']); - if(empty($notification_action)) { $notification_action = "#"; } - ?> -
@@ -49,11 +57,8 @@ ob_start(); - +

No Notifications

@@ -62,7 +67,9 @@ ob_start();
-