add default for request_cooldown

This commit is contained in:
davidovski 2023-08-25 17:53:59 +01:00
parent 039e549d4c
commit b8047b2982
1 changed files with 2 additions and 0 deletions

View File

@ -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);