LibreY

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

commit 73c5b4b98e33f45eba61bb1f13a61efb716b65a8
parent 9d431ae8c090d0e8e789f6d2758b46402f7f375c
Author: davidovski <david@davidovski.xyz>
Date: Wed, 30 Aug 2023 21:00:00 +0100

fix not respecting cooldown

Diffstat:
Mengines/text/text.php | 2+-

1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engines/text/text.php b/engines/text/text.php
@@ -36,7 +36,7 @@
 
             $results = $this->engine_request->get_results();
 
-            if (empty(count($results))) {
+            if (empty($results)) {
                 set_cooldown($this->engine, ($opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns);
             } else {
                 if ($this->special_request) {