LibreY

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

commit b8047b298247d061d8e34bc58d2d5b1373f98936
parent 039e549d4ce11143521b7909bcb563b9ea178cc3
Author: davidovski <david@davidovski.xyz>
Date: Fri, 25 Aug 2023 17:53:59 +0100

add default for request_cooldown

Diffstat:
Mmisc/search_engine.php | 2++

1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/misc/search_engine.php b/misc/search_engine.php
@@ -33,6 +33,8 @@
     function load_opts() {
         $opts = require "config.php";
 
+        $opts->request_cooldown ??= 25;
+
         $opts->query = trim($_REQUEST["q"] ?? "");
         $opts->type = (int) ($_REQUEST["t"] ?? 0);
         $opts->page = (int) ($_REQUEST["p"] ?? 0);