diff --git a/inc/doc.php b/inc/doc.php index 3bd163f..2005db6 100644 --- a/inc/doc.php +++ b/inc/doc.php @@ -58,7 +58,8 @@ class Doc extends PhpObject { } public function getList() { - $asDocs = $this->oDb->selectRows(array('select'=>array(Db::getId(self::DOC_TABLE), 'type', 'filename'), 'from'=>self::DOC_TABLE, 'constraints'=>$this->getDocKeys())); + $this->oDb->setTrace(true); + $asDocs = $this->oDb->selectRows(array('select'=>array(Db::getId(self::DOC_TABLE), 'type', 'filename'), 'from'=>self::DOC_TABLE, 'constraint'=>$this->getDocKeys())); foreach($asDocs as &$asDoc) $asDoc['filepath'] = self::getFilePath($asDoc['filename']); return $asDocs;