Pārlūkot izejas kodu

Increase max limit for sqGetGlobalVarMultiple search "radius".

pdontthink 18 gadi atpakaļ
vecāks
revīzija
ac4bdcb2f2
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  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, 
                                 $fallback_no_suffix=TRUE, $default=NULL, 
                                 $typecast=FALSE) {
                                 $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++) {
     for ($i = 1; $i <= $max_form_search; $i++) {
         if (sqGetGlobalVar($indicator_field . '_' . $i, $temp, $search)) {
         if (sqGetGlobalVar($indicator_field . '_' . $i, $temp, $search)) {