From 785452873f0ee0a27fc157b482b7551560f0282d Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 7 Nov 2023 08:04:56 -0500 Subject: fix typo --- api/v1/web.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'api/v1/web.php') diff --git a/api/v1/web.php b/api/v1/web.php index 61bf82a..dc1a7cc 100644 --- a/api/v1/web.php +++ b/api/v1/web.php @@ -1,8 +1,14 @@ "The server administrator disabled the API!"]); + return; +} include "lib/frontend.php"; $frontend = new frontend(); @@ -21,7 +27,13 @@ new captcha($null, $null, $null, "web", false); $get = $frontend->parsegetfilters($_GET, $filters); -if(!isset($_GET["extendedsearch"])){ +if( + isset($_GET["extendedsearch"]) && + $_GET["extendedsearch"] == "yes" +){ + + $get["extendedsearch"] = "yes"; +}else{ $get["extendedsearch"] = "no"; } -- cgit v1.2.3