From aa4b6de431d418f361fe663cdcdaa0a8c460730e Mon Sep 17 00:00:00 2001 From: John Bojorquez Date: Mon, 24 Apr 2017 11:14:12 -0400 Subject: [PATCH] Reverse order fo messages displayed --- public/messages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/messages.php b/public/messages.php index b9a8760..780b32a 100644 --- a/public/messages.php +++ b/public/messages.php @@ -10,8 +10,8 @@ if (!$data) { } $user = User::get($data->username); -$inbox = SecureMessage::all_to($user->id); -$outbox = SecureMessage::all_from($user->id); +$inbox = array_reverse(SecureMessage::all_to($user->id)); +$outbox = array_reverse(SecureMessage::all_from($user->id)); include 'template/header.html'; include 'template/user_menu_button.php';