From 1793f9850022dbde72acb1e45910f2a19afd3c8d Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 5 Jan 2007 05:02:03 +0000 Subject: [PATCH] Increase max limit for sqGetGlobalVarMultiple search "radius". git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12067 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/global.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions/global.php b/functions/global.php index ee78c9ac..47625ac8 100644 --- a/functions/global.php +++ b/functions/global.php @@ -183,7 +183,12 @@ function sqGetGlobalVarMultiple($name, &$value, $indicator_field, $fallback_no_suffix=TRUE, $default=NULL, $typecast=FALSE) { - $max_form_search = 15; + // Set arbitrary max limit -- should be much lower except on the + // search results page, if there are many (50 or more?) mailboxes + // shown, this may not be high enough. Is there some way we should + // automate this value? + // + $max_form_search = 100; for ($i = 1; $i <= $max_form_search; $i++) { if (sqGetGlobalVar($indicator_field . '_' . $i, $temp, $search)) { -- 2.25.1