can't set timeout when the db isn't connected

This commit is contained in:
Shish 2023-02-08 01:33:43 +00:00
parent 4e5444e217
commit 817a2ff2f4

View file

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