Add some minor adjustments

Fix CS

Fix CS

Fix CS
This commit is contained in:
Nicolas Le Goff
2013-02-12 15:19:20 +01:00
parent 0cbaa17b25
commit c3f8e70fe5
14 changed files with 60 additions and 32 deletions

View File

@@ -21,7 +21,7 @@ class module_report_sqlquestion extends module_report_sql implements module_repo
public function buildSql()
{
$filter = $this->filter->getReportFilter() ? : array('params' => array(), 'sql' => false);
$filter = $this->filter->getReportFilter() ? : array('params' => array(), 'sql' => false);
$this->params = array_merge(array(), $filter['params']);
if ($this->groupby == false) {
@@ -62,7 +62,7 @@ class module_report_sqlquestion extends module_report_sql implements module_repo
public function sqlDistinctValByField($field)
{
$filter = $this->filter->getReportFilter() ? : array('params' => array(), 'sql' => false);
$filter = $this->filter->getReportFilter() ? : array('params' => array(), 'sql' => false);
$this->params = array_merge(array(), $filter['params']);
$this->sql = "
@@ -76,6 +76,6 @@ class module_report_sqlquestion extends module_report_sql implements module_repo
) as tt
ORDER BY tt.val ASC";
return array('sql' => $this->sql, 'params' => $this->params);
return array('sql' => $this->sql, 'params' => $this->params);
}
}