true.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7544
7612ce4b-ef26-0410-bec9-
ea0150e637f0
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);