if use cache, error DB Object. so check DB Object before using

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12444 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-12-20 08:10:16 +00:00
parent 8c4dc00700
commit 02f39a7384

View file

@ -595,7 +595,7 @@
}
// If connection to DB has a problem even though it's not install module, set error
if($this->module != 'install' && $GLOBALS['__DB__'][Context::getDBType()]->isConnected() == false) {
if($this->module != 'install' && isset($GLOBALS['__DB__']) && $GLOBALS['__DB__'][Context::getDBType()]->isConnected() == false) {
$this->error = 'msg_dbconnect_failed';
}