Commit 0edc67a02e0896655699afdebb03d16b8066e55c
1 parent
6721723c
Added check in case document does not have a type associated with
it git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1769 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
| ... | ... | @@ -282,7 +282,9 @@ function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessa |
| 282 | 282 | $sToRender .= "<td>" . $oCreator->getName() . "</td>"; |
| 283 | 283 | $sToRender .= "<td>" . $aResults["documents"][$i]->getLastModifiedDate() . "</td>"; |
| 284 | 284 | $oDocumentType = DocumentType::get($aResults["documents"][$i]->getDocumentTypeID()); |
| 285 | - $sToRender .= "<td>" . $oDocumentType->getName() . "</td>"; | |
| 285 | + if ($oDocumentType) { | |
| 286 | + $sToRender .= "<td>" . $oDocumentType->getName() . "</td>"; | |
| 287 | + } | |
| 286 | 288 | $sToRender .= "</tr>\n"; |
| 287 | 289 | } |
| 288 | 290 | } else if ($aResults["accessDenied"]) { | ... | ... |