Fixed uninitalized usage of $opts (to $this->opts)

set_cooldown($this->engine, ($opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns);

to 

set_cooldown($this->engine, ($this->opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns);
This commit is contained in:
Delirious
2024-02-22 16:13:10 -07:00
committed by GitHub
parent 82b5ae8dcd
commit cc8fd01412
+1 -1
View File
@@ -102,7 +102,7 @@
$results = $this->engine_request->get_results();
if (empty($results)) {
set_cooldown($this->engine, ($opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns);
set_cooldown($this->engine, ($this->opts->request_cooldown ?? "1") * 60, $this->opts->cooldowns);
} else {
if ($this->special_request) {
$special_result = $this->special_request->get_results();