mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix check for DB connection in ModuleHandler
This commit is contained in:
parent
2f3f1d4be0
commit
42a57421f1
1 changed files with 1 additions and 1 deletions
|
|
@ -906,7 +906,7 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
|
||||
// If connection to DB has a problem even though it's not install module, set error
|
||||
if($this->module != 'install' && isset($GLOBALS['__DB__']) && $GLOBALS['__DB__'][Context::getDBType()]->isConnected() == FALSE)
|
||||
if($this->module != 'install' && !DB::getInstance()->isConnected())
|
||||
{
|
||||
$this->error = 'msg_dbconnect_failed';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue