From 817a2ff2f4e388259094afee1261f6e4a25a3824 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 8 Feb 2023 01:33:43 +0000 Subject: [PATCH] can't set timeout when the db isn't connected --- ext/rule34/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/rule34/main.php b/ext/rule34/main.php index b1f89865..800eeae3 100644 --- a/ext/rule34/main.php +++ b/ext/rule34/main.php @@ -105,7 +105,8 @@ class Rule34 extends Extension { global $database, $page, $user; - $database->set_timeout(DATABASE_TIMEOUT+15000); // deleting users can take a while + # Database might not be connected at this point... + #$database->set_timeout(DATABASE_TIMEOUT+15000); // deleting users can take a while if (function_exists("sd_notify_watchdog")) { \sd_notify_watchdog();