LibreY

- privacy respecting meta search engine
git clone git://git.acid.vegas/LibreY.git
Log | Files | Refs | Archive | README | LICENSE

commit a33f26a63805feb08bf785dafcd448a029fb3120
parent 12f02198f9561a4fb48eea3f37227161da41210b
Author: davidovski <david@davidovski.xyz>
Date: Wed, 30 Aug 2023 17:50:56 +0100

Add no instances message

Diffstat:
Mengines/librex/fallback.php | 6+++++-
Mmisc/search_engine.php | 1-

2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/engines/librex/fallback.php b/engines/librex/fallback.php
@@ -62,7 +62,11 @@
 
         } while (!empty($instances));
 
-        return array();
+        return array(
+            "error" => array(
+                "message" => "No results found. Unable to fallback to other instances."
+            )
+        );
     }
 
 ?>
diff --git a/misc/search_engine.php b/misc/search_engine.php
@@ -152,7 +152,6 @@
         } while ($running);
 
         $results = $search_category->get_results();
-        error_log(print_r($results, true));
 
         if (empty($results)) {
             require "engines/librex/fallback.php";