- do not list a document without document content

This commit is contained in:
steinm 2012-10-22 10:51:24 +00:00
parent 39434519bb
commit c580ea2c76

View File

@ -130,7 +130,7 @@ foreach($documents as $document) {
$comment = $document->getComment();
if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "...";
$docID = $document->getID();
$latestContent = $document->getLatestContent();
if($latestContent = $document->getLatestContent()) {
$version = $latestContent->getVersion();
$status = $latestContent->getStatus();
@ -151,6 +151,7 @@ foreach($documents as $document) {
print "<td>".htmlspecialchars($comment)."</td>";
print "</tr>\n";
}
}
if ((count($subFolders) > 0)||(count($documents) > 0)) echo "</tbody>\n</table>\n";