From 13fcdf43ca8136b20ecf90b48dcfa2bff7de88d7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 20 Jan 2020 10:36:31 +0100 Subject: [PATCH] show list of expired documents newer shew any documents --- views/bootstrap/class.MyDocuments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.MyDocuments.php b/views/bootstrap/class.MyDocuments.php index 9e5da1249..c05ec4bc2 100644 --- a/views/bootstrap/class.MyDocuments.php +++ b/views/bootstrap/class.MyDocuments.php @@ -821,7 +821,7 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { if($docs = $dms->getDocumentsExpired(-3*365, $user)) { $this->contentHeading(getMLText("documents_expired")); $this->contentContainerStart(); - if (count($resArr)>0) { + if (count($docs)>0) { print ""; print "\n\n"; @@ -863,7 +863,7 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { print "
"; } - else printMLText("no_docs_locked"); + else printMLText("no_docs_expired"); $this->contentContainerEnd(); }