function __construct()
{
-
- $this->loadIniFiles(); //?? shared???
+ // this might get run before we have imported the database
+ // and hence not have any db.
+ try {
+ $this->loadIniFiles(); //?? shared???
+ } catch(PDO_DataObject_Exception_InvalidConfig $e) {
+ echo "SKipping MysqlEngineCharse - no database yet\n";
+ return;
+ }
$dbo = DB_DataObject::factory('core_enum');
if (is_a($dbo, 'PDO_DataObject')) {