mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add some minor adjustments
Fix CS Fix CS Fix CS
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user