I found errors when using search on "all folders"
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 12 Dec 2002 20:23:16 +0000 (20:23 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 12 Dec 2002 20:23:16 +0000 (20:23 +0000)
commitcf6cb8b1a952371f88b84f6bf556efb8408a628e
tree0759d055bc5caf432efb15f24a0a520e0b3b3af3
parentfe70ae278faa446daf7c71b007066abdaf00358e
I found errors when using search on "all folders"
Turns out calc_msort() was being called for all folders, even the ones without any messages.  Moved the call to calc_msort() into the if block that checks for messages.

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