From 5f38d6d5c17c01d2f3488965e817478bf3a8cd06 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 18 Mar 2010 10:57:14 +0000 Subject: Fix sorting of entries after newly inserted entry. --- utils/modules/guestbook.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/modules/guestbook.php b/utils/modules/guestbook.php index 200322d..92fe732 100644 --- a/utils/modules/guestbook.php +++ b/utils/modules/guestbook.php @@ -307,6 +307,9 @@ class Guestbook { $_SERVER['REMOTE_ADDR'], convert($message_hidden)); $this->add($entry); + + krsort($this->guestbook); + $this->write(); $str = ""; } else { -- cgit v1.2.3