fix PHP other notice when file cache used

Chris Pollett [2022-08-02 01:Aug:nd]
fix PHP other notice when file cache used
Filename
src/configs/Config.php
src/models/PhraseModel.php
src/views/elements/SearchElement.php
diff --git a/src/configs/Config.php b/src/configs/Config.php
index 2068808ca..eb09cada4 100755
--- a/src/configs/Config.php
+++ b/src/configs/Config.php
@@ -547,7 +547,7 @@ if (file_exists(WORK_DIRECTORY . PROFILE_FILE_NAME)) {
      * If that many exist, the minimum number of results to get
      * and group before trying to compute the top x (say 10) results
      */
-    nsdefine('MIN_RESULTS_TO_GROUP', 300);
+    nsdefine('MIN_RESULTS_TO_GROUP', 200);
     nsdefine('BACKGROUND_COLOR', "#FFFFFF");
     nsdefine('FOREGROUND_COLOR', "#FFFFFF");
     nsdefine('SIDEBAR_COLOR', "#F8F8F8");
diff --git a/src/models/PhraseModel.php b/src/models/PhraseModel.php
index 2c41270fa..316f6f264 100755
--- a/src/models/PhraseModel.php
+++ b/src/models/PhraseModel.php
@@ -1340,6 +1340,9 @@ class PhraseModel extends ParallelModel
             }
             $sort_time = L\changeInMicrotime($sort_start);
         }
+        if (empty($results)) {
+            $results = [];
+        }
         if ($num_retrieved < $to_retrieve) {
             $results['TOTAL_ROWS'] = $num_retrieved;
         } else {
diff --git a/src/views/elements/SearchElement.php b/src/views/elements/SearchElement.php
index 70e62fae6..36f35f404 100644
--- a/src/views/elements/SearchElement.php
+++ b/src/views/elements/SearchElement.php
@@ -201,8 +201,7 @@ class SearchElement extends Element implements CrawlConstants
             }
             $subsearch = (isset($data["SUBSEARCH"])) ? $data["SUBSEARCH"] :
                 "";
-            $base_query = "?" . $token_string_amp.
-                    "c=search";
+            $base_query = "?" . $token_string_amp . "c=search";
             if (isset($page['IMAGES'])) {
                 $this->view->helper("images")->render($page['IMAGES'],
                     $base_query . "&amp;q=".urlencode($data['QUERY']),
ViewGit