mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
- do not list a document without document content
This commit is contained in:
parent
39434519bb
commit
c580ea2c76
|
@ -130,7 +130,7 @@ foreach($documents as $document) {
|
||||||
$comment = $document->getComment();
|
$comment = $document->getComment();
|
||||||
if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "...";
|
if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "...";
|
||||||
$docID = $document->getID();
|
$docID = $document->getID();
|
||||||
$latestContent = $document->getLatestContent();
|
if($latestContent = $document->getLatestContent()) {
|
||||||
$version = $latestContent->getVersion();
|
$version = $latestContent->getVersion();
|
||||||
$status = $latestContent->getStatus();
|
$status = $latestContent->getStatus();
|
||||||
|
|
||||||
|
@ -150,6 +150,7 @@ foreach($documents as $document) {
|
||||||
print "<td>".$version."</td>";
|
print "<td>".$version."</td>";
|
||||||
print "<td>".htmlspecialchars($comment)."</td>";
|
print "<td>".htmlspecialchars($comment)."</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((count($subFolders) > 0)||(count($documents) > 0)) echo "</tbody>\n</table>\n";
|
if ((count($subFolders) > 0)||(count($documents) > 0)) echo "</tbody>\n</table>\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user