Przeglądaj źródła

stupid error in checking the newsort value, also check if it validates as
true.

stekkel 21 lat temu
rodzic
commit
3dd4d92c72
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/right_main.php

+ 1 - 1
src/right_main.php

@@ -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);