* Fix bug #21403,21474,21410,21414,21417,21456.

This commit is contained in:
tanghucheng
2022-04-07 15:27:54 +08:00
parent adb3a7ea72
commit 3d3ffe9348
11 changed files with 28 additions and 15 deletions
+1 -3
View File
@@ -251,7 +251,7 @@ EOF;
/* Load pager. */
$this->app->loadClass('pager', $static = true);
if($this->app->getViewType() == 'mhtml') $recPerPage = 10;
$pager = pager::init($recTotal, $recPerPage, $pageID);
$pager = new pager($recTotal, $recPerPage, $pageID);
if(empty($userID)) $userID = $this->app->user->id;
$user = $this->loadModel('user')->getById($userID, 'id');
@@ -271,8 +271,6 @@ EOF;
if($todo->type == 'task' and isset($tasks[$todo->idvalue])) unset($todos[$key]);
}
$pager->recTotal = count($todos);
/* Assign. */
$this->view->todos = $todos;
$this->view->date = (int)$type == 0 ? date(DT_DATE1) : date(DT_DATE1, strtotime($type));