Harry Fuecks - 2004-06-16

Logged In: YES
user_id=569780

Seems we've got a similar problem with other libraries -
we're not checking that a user actually provided a config
value for the path to the library.

Suggest a slightly different implementation where we can
report this as an error e.g.;

if ( !defined('ADODB_LIBRARY_PATH') ) {
define('ADODB_LIBRARY_PATH', getConfigOption('config',
'adodb', 'library_path'));
if ( ADODB_LIBRARY_PATH === NULL ) {
RaiseError('runtime', 'CONFIG_VALUE_REQUIRED', array(
'config_file' => 'config.ini',
'config_section' => 'adodb',
'config_value' => 'library_path'));
}
}

Given more of less the same code it need in each case,
wondering if there's room for a utility function to help?