X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=RooGetTrait.php;h=162ebce1d0e998dc6863e32dbb7e31b2835e16de;hb=b341a92085a9d4a5cfb1d2043e599420472aa6c8;hp=3ee21ca9863c64c35592aa00afca761ff8a985ff;hpb=924041085ecddbc83acc67df4a835a709d058bd4;p=Pman.Core diff --git a/RooGetTrait.php b/RooGetTrait.php index 3ee21ca9..162ebce1 100644 --- a/RooGetTrait.php +++ b/RooGetTrait.php @@ -107,7 +107,8 @@ trait Pman_Core_RooGetTrait { 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); @@ -301,7 +302,7 @@ trait Pman_Core_RooGetTrait { $cols = $x->table(); $excols = array_keys($this->cols); - print_R($excols); + //print_R($excols); if (isset($x->_extra_cols)) { $excols = array_merge($excols, $x->_extra_cols); @@ -434,7 +435,7 @@ trait Pman_Core_RooGetTrait { $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; }