mirror of https://github.com/supernets/LibreY.git
add default for request_cooldown
This commit is contained in:
parent
039e549d4c
commit
b8047b2982
|
@ -33,6 +33,8 @@
|
||||||
function load_opts() {
|
function load_opts() {
|
||||||
$opts = require "config.php";
|
$opts = require "config.php";
|
||||||
|
|
||||||
|
$opts->request_cooldown ??= 25;
|
||||||
|
|
||||||
$opts->query = trim($_REQUEST["q"] ?? "");
|
$opts->query = trim($_REQUEST["q"] ?? "");
|
||||||
$opts->type = (int) ($_REQUEST["t"] ?? 0);
|
$opts->type = (int) ($_REQUEST["t"] ?? 0);
|
||||||
$opts->page = (int) ($_REQUEST["p"] ?? 0);
|
$opts->page = (int) ($_REQUEST["p"] ?? 0);
|
||||||
|
|
Loading…
Reference in New Issue