Commit 71356ca5352d7a35b746025b3702e68b299a6093
1 parent
aa687782
"KTS-2116"
"Document object does var_dump() on pear error." Fixed. Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6799 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
1 deletions
lib/documentmanagement/Document.inc
| ... | ... | @@ -230,7 +230,11 @@ class Document { |
| 230 | 230 | $this->_oDocumentMetadataVersion = KTDocumentMetadataVersion::get($iMetadataVersionId); |
| 231 | 231 | $this->iCurrentMetadataVersionId = $iMetadataVersionId; |
| 232 | 232 | } |
| 233 | - if (PEAR::isError($this->_oDocumentMetadataVersion)) { var_dump($this->_oDocumentMetadataVersion); return $this->_oDocumentMetadataVersion; } | |
| 233 | + if (PEAR::isError($this->_oDocumentMetadataVersion)) | |
| 234 | + { | |
| 235 | + // var_dump($this->_oDocumentMetadataVersion); | |
| 236 | + return $this->_oDocumentMetadataVersion; | |
| 237 | + } | |
| 234 | 238 | |
| 235 | 239 | $this->_oDocumentContentVersion = KTDocumentContentVersion::get($this->_oDocumentMetadataVersion->getContentVersionId()); |
| 236 | 240 | if (PEAR::isError($this->_oDocumentContentVersion)) { return $this->_oDocumentContentVersion; } | ... | ... |