PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
- $tab = array_shift(explode('/', $tab));
+ $explode_tab = explode('/', $tab);
+ $tab = array_shift($explode_tab);
$x = $this->dataObject($tab);
$cols = $x->table();
$excols = array_keys($this->cols);
+ //print_R($excols);
if (isset($x->_extra_cols)) {
$excols = array_merge($excols, $x->_extra_cols);
$cols = array_keys($data[0]);
$options = &PEAR::getStaticProperty('DB_DataObject','options');
- $reader = $options["ini_{$x->_database}"] .'.reader';
+ $reader = $options["ini_{$x->databaseNickname()}"] .'.reader';
if (!file_exists( $reader )) {
return;
}