function _validateDatabase() { //echo "<PRE>"; print_r($this); if ($this->nodatabase) { return; } $options =& PEAR::getStaticProperty('DB_DataObject', 'options'); $dd = empty($options['dont_die']) ? false : true; $options['dont_die'] = true; // database is the only setting - we dont support mult databses? $x = new DB_Dataobject(); $x->_database = $this->database; if (PEAR::isError($err = $x->getDatabaseConnection())) { $this->fatalError("Configuration or Database Error: could not connect to Database, <BR>\n Please check the value given to HTML_FlexyFramework, or run with debug on!<BR>\n <BR> " . $err->toString()); } // reset dont die! $options['dont_die'] = $dd; }