can't set timeout when the db isn't connected
This commit is contained in:
parent
4e5444e217
commit
817a2ff2f4
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ class Rule34 extends Extension
|
||||||
{
|
{
|
||||||
global $database, $page, $user;
|
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")) {
|
if (function_exists("sd_notify_watchdog")) {
|
||||||
\sd_notify_watchdog();
|
\sd_notify_watchdog();
|
||||||
|
|
Reference in a new issue