However, I can't say the fix looks too good.
In cmsObject::getDb(), there is (naturally) a check to see if the connection to the database failed.
It reads
Code: Select all
if (!$dbinstance || (TRUE == empty($dbinstance->_connectionID) && TRUE == empty($dbinstance->connectionId)))
{
var_dump($dbinstance);
die("Database Connection failed");
}