diff --git a/module/common/control.php b/module/common/control.php index 6405b3a690..ad11c16b3c 100644 --- a/module/common/control.php +++ b/module/common/control.php @@ -158,8 +158,8 @@ class common extends control public static function printOrderLink($fieldName, $orderBy, $vars, $label, $module = '', $method = '') { global $lang, $app; - if(empty($module)) $module= $app->getModuleName(); - if(empty($method)) $method= $app->getMethodName(); + if(empty($module)) $module = $app->getModuleName(); + if(empty($method)) $method = $app->getMethodName(); $className = 'header'; if(strpos($orderBy, $fieldName) !== false) diff --git a/module/my/control.php b/module/my/control.php index 60ec7aeb50..8c5be75990 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -69,7 +69,7 @@ class my extends control * @access public * @return void */ - public function todo($type = 'today', $account = '', $status = 'all', $orderBy="date,status,begin", $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function todo($type = 'today', $account = '', $status = 'all', $orderBy = "date,status,begin", $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* Save session. */ $uri = $this->app->getURI(true); @@ -94,6 +94,7 @@ class my extends control $this->view->pageID = $pageID; $this->view->status = $status; $this->view->account = $this->app->user->account; + echo $orderBy; $this->view->orderBy = $orderBy; $this->view->pager = $pager; $this->view->importFuture = ($type != 'today'); diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index 4c4562a180..f2b47bfc8b 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -78,7 +78,7 @@