diff --git a/module/block/control.php b/module/block/control.php index 4f09490524..14b86d1614 100755 --- a/module/block/control.php +++ b/module/block/control.php @@ -2074,13 +2074,17 @@ class block extends control $pager = new pager(0, 6, 1); $docList = $this->loadModel('doc')->getDocsByBrowseType('collectedbyme', 0, 0, 'editedDate_desc', $pager); + $libList = array(); foreach($docList as $doc) { $doc->editedDate = substr($doc->editedDate, 0, 10); $doc->editInterval = helper::getDateInterval($doc->editedDate); + + $libList[] = $doc->lib; } - $this->view->docList = $docList; + $this->view->pricDocs = $this->doc->getPrivDocs($libList); + $this->view->docList = $docList; } /** diff --git a/module/block/view/docmycollectionblock.html.php b/module/block/view/docmycollectionblock.html.php index d4d9f0971b..c065d45e29 100644 --- a/module/block/view/docmycollectionblock.html.php +++ b/module/block/view/docmycollectionblock.html.php @@ -11,28 +11,26 @@ */ ?>