Commit 63423fde5aeefb60152c2921c4df39e3f9efa5b0

Authored by Michael Joseph
1 parent 969d095a

check for pending document existance before printing link


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2380 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/dashboardUI.inc
... ... @@ -85,9 +85,11 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) {
85 85 $sToRender .= "\t\t\t</tr>\n";
86 86 for ($i = 0; $i < count($aPendingDocumentList); $i++) {
87 87 $oDocument = $aPendingDocumentList[$i];
88   - $sToRender .= "\t\t\t<tr>\n";
89   - $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n";
90   - $sToRender .= "\t\t\t</tr>\n";
  88 + if ($oDocument) {
  89 + $sToRender .= "\t\t\t<tr>\n";
  90 + $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n";
  91 + $sToRender .= "\t\t\t</tr>\n";
  92 + }
91 93 }
92 94 return $sToRender;
93 95 }
... ...