From e92eab8b04f38ce9159142df2684619360a9ea7a Mon Sep 17 00:00:00 2001 From: jmunro Date: Thu, 28 Mar 2002 22:27:37 +0000 Subject: [PATCH] disable thread sort from search page output, not compatible with the search page table yet. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2643 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/search.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/search.php b/src/search.php index 9786cb5d..def8d325 100644 --- a/src/search.php +++ b/src/search.php @@ -15,6 +15,7 @@ require_once('../functions/imap_search.php'); require_once('../functions/array.php'); require_once('../functions/strings.php'); +global $allow_thread_sort; /* here are some functions, could go in imap_search.php @@ -360,6 +361,12 @@ do_hook('search_after_form'); folder it finds a match in. */ +$old_value = 0; +if ($allow_thread_sort == true) { + $old_value = $allow_thread_sort; + $allow_thread_sort = false; +} + if ($search_all == 'all') { $mailbox == ''; $boxcount = count($boxes); @@ -405,6 +412,8 @@ if ($submit == _("Search") && empty($what)) { echo "
Please enter something to search for
\n"; } +$allow_thread_sort = $old_value; + do_hook('search_bottom'); sqimap_logout ($imapConnection); echo ''; -- 2.25.1