Browse Source

Increase max limit for sqGetGlobalVarMultiple search "radius".

pdontthink 18 years ago
parent
commit
ac4bdcb2f2
1 changed files with 6 additions and 1 deletions
  1. 6 1
      functions/global.php

+ 6 - 1
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)) {