LibreY

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

commit ccc0d78deeb854855f4204052af9d6264c065732
parent 11e11192a47b91e22e0f5726a060920b8ede03b5
Author: davidovski <david@davidovski.xyz>
Date: Fri, 25 Aug 2023 19:09:06 +0100

Fixed incorrect use of function_exists

Diffstat:
Mmisc/cooldowns.php | 4++--

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

diff --git a/misc/cooldowns.php b/misc/cooldowns.php
@@ -1,12 +1,12 @@
 <?php
     function load_cooldowns() {
-        if (function_exists(apcu_fetch))
+        if (function_exists("apcu_fetch"))
             return apcu_exists("cooldowns") ? apcu_fetch("cooldowns") : array();
         return array();
     }
 
     function save_cooldowns($cooldowns) {
-        if (function_exists(apcu_fetch))
+        if (function_exists("apcu_store"))
             apcu_store("cooldowns", $cooldowns);
     }