add default for request_cooldown
This commit is contained in:
parent
039e549d4c
commit
b8047b2982
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue