From 5d002eee0ec0839f29c428eada13fd94f05c7a95 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 18 Sep 2012 21:13:46 +0000 Subject: [PATCH] Put the notes in descending order. --- app/contacts/contact_notes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/contacts/contact_notes.php b/app/contacts/contact_notes.php index b412a61ec7..2ff8da16f3 100644 --- a/app/contacts/contact_notes.php +++ b/app/contacts/contact_notes.php @@ -40,6 +40,12 @@ require_once "includes/paging.php"; $order_by = $_GET["order_by"]; $order = $_GET["order"]; +//set defaults + if (strlen($order_by) == 0) { + $order_by = 'last_mod_date'; + $order = 'desc'; + } + //show the content //echo "
"; //echo "\n";