stupid error in checking the newsort value, also check if it validates as
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 May 2004 17:47:43 +0000 (17:47 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 May 2004 17:47:43 +0000 (17:47 +0000)
true.

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

src/right_main.php

index 93df5941ef7cd4121d311b2c3254f71de017917a..c8ec8ab5cf42d188b7e15414f9df046e6c0c4cf8 100644 (file)
@@ -144,7 +144,7 @@ if ($aLastSelectedMailbox) {
            if ($server_sort_array && is_array($server_sort_array)) {
                $aMbxResponse['SORT_ARRAY'] = $server_sort_array;
                // check if oldsort can be used in case we changed the sort order of the same column
-               if (isset($newsort) ) {
+               if (isset($newsort) && $newsort) {
                     if ((($newsort % 2) && ($newsort + 1 == $oldsort)) ||
                         (!($newsort % 2) && ($newsort - 1 == $oldsort))) {
                         $server_sort_array = array_reverse($server_sort_array);