* fix a bug #651.
This commit is contained in:
@@ -88,7 +88,7 @@ class my extends control
|
||||
/* Assign. */
|
||||
$this->view->todos = $this->loadModel('todo')->getList($type, $account, $status, 0, $pager, $orderBy);
|
||||
$this->view->date = (int)$type == 0 ? date(DT_DATE1) : date(DT_DATE1, strtotime($type));
|
||||
$this->view->type = is_numeric($type) ? 'byDate' : $type;
|
||||
$this->view->type = $type;
|
||||
$this->view->recTotal = $recTotal;
|
||||
$this->view->recPerPage = $recPerPage;
|
||||
$this->view->pageID = $pageID;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
}
|
||||
echo "<li id='byDate' class='datepicker-wrapper datepicker-date'>" . html::input('date', $date,"class='form-control form-date' onchange='changeDate(this.value)'") . '</li>';
|
||||
|
||||
if($type == 'bydate')
|
||||
if(is_numeric($type))
|
||||
{
|
||||
if($date == date('Y-m-d'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user