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';