disable thread sort from search page output, not compatible with the search page...
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Mar 2002 22:27:37 +0000 (22:27 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Mar 2002 22:27:37 +0000 (22:27 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2643 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/search.php

index 9786cb5dd85132d53fd9edfedb41d81aef627314..def8d3257a4f9c66fe0b2501b5094b3f52a26e38 100644 (file)
@@ -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 "<BR><CENTER><B>Please enter something to search for</B></CENTER>\n";
 }
 
+$allow_thread_sort = $old_value;
+
 do_hook('search_bottom');
 sqimap_logout ($imapConnection);
 echo '</body></html>';