Fix check for DB connection in ModuleHandler

This commit is contained in:
Kijin Sung 2017-12-21 00:19:51 +09:00
parent 2f3f1d4be0
commit 42a57421f1

View file

@ -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 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'; $this->error = 'msg_dbconnect_failed';
} }