浏览代码

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

stekkel 21 年之前
父节点
当前提交
3dd4d92c72
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);