From f6fbffaca1fa10f2a25aa3973ab619657b9bfc34 Mon Sep 17 00:00:00 2001 From: stekkel Date: Mon, 24 May 2004 17:47:43 +0000 Subject: [PATCH] stupid error in checking the newsort value, also check if it validates as true. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7544 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/right_main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/right_main.php b/src/right_main.php index 93df5941..c8ec8ab5 100644 --- a/src/right_main.php +++ b/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); -- 2.25.1