Add flush statement after the search form. Searching can take a long time,
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 6 Mar 2004 20:59:28 +0000 (20:59 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 6 Mar 2004 20:59:28 +0000 (20:59 +0000)
this makes sure the search form is output as a whole directly when it's
available. With me, the search form will only be output partly as the
other half is buffered waiting for search results.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6752 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/search.php

index 0b7cc54e538c996c4caafa5c8a3273531b5d1ab9..b99fff9c81635bcd117ece3537cb8922e02c9d75 100644 (file)
@@ -1048,6 +1048,8 @@ if ($submit == $search_button_text) {
        echo html_tag('tr', html_tag('td', asearch_get_query_display($color, $mailbox_array, $biop_array, $unop_array, $where_array, $what_array, $exclude_array, $sub_array), 'center', $color[4]));
        echo '</table>' . "\n";
 
+       flush();
+
        $query_error = asearch_check_query($where_array, $what_array, $exclude_array);
        if ($query_error != '')
                echo '<br>' . html_tag('div', asearch_get_error_display($color, $query_error), 'center') . "\n";