viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

bug fix attempt add aux records, a=chris

Chris Pollett [2018-06-19 22:Jun:th]
bug fix attempt add aux records, a=chris
Filename
src/library/IndexDictionary.php
diff --git a/src/library/IndexDictionary.php b/src/library/IndexDictionary.php
index 1aa5b792f..7fede1723 100644
--- a/src/library/IndexDictionary.php
+++ b/src/library/IndexDictionary.php
@@ -794,7 +794,7 @@ class IndexDictionary implements CrawlConstants
      * @param int $start_generation if  positive the first generation to
             return information about
      * @param int $num_distinct_generations if positive number of then
-     *      determines the number of generations after the starting gneration
+     *      determines the number of generations after the starting generation
      *      to return information about
      * @return mixed a pair(total_count, max_found_generation,
      *      an array of entries of the form
@@ -1128,14 +1128,14 @@ class IndexDictionary implements CrawlConstants
                             }
                         }
                     }
-                    $id_info[$record[0]][] = count($info);
-                    $info[] = $record;
-                    $total_count += $record[3];
-                    if ($threshold > 0 && $total_count > $threshold) {
-                        return;
-                    }
-                    $previous_generation = $record[0];
                 }
+                $id_info[$record[0]][] = count($info);
+                $info[] = $record;
+                $total_count += $record[3];
+                if ($threshold > 0 && $total_count > $threshold) {
+                    return;
+                }
+                $previous_generation = $record[0];
             }
             $offset += $word_item_len;
         }
ViewGit