mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +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();
|
||||
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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user