diff options
author | Simon Rettberg | 2022-04-19 11:23:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-04-19 11:23:34 +0200 |
commit | f00ef43187777414800fdc06c465afb551cbf437 (patch) | |
tree | 8bad0305923dc88710d47c2580b4bf60d9650fa7 /modules-available/statistics/inc | |
parent | [statistics] Fix query builder (diff) | |
download | slx-admin-f00ef43187777414800fdc06c465afb551cbf437.tar.gz slx-admin-f00ef43187777414800fdc06c465afb551cbf437.tar.xz slx-admin-f00ef43187777414800fdc06c465afb551cbf437.zip |
Formatting/minor refactoring
Diffstat (limited to 'modules-available/statistics/inc')
-rw-r--r-- | modules-available/statistics/inc/hardwarequery.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules-available/statistics/inc/hardwarequery.inc.php b/modules-available/statistics/inc/hardwarequery.inc.php index 14d827aa..71530173 100644 --- a/modules-available/statistics/inc/hardwarequery.inc.php +++ b/modules-available/statistics/inc/hardwarequery.inc.php @@ -158,11 +158,13 @@ class HardwareQuery } else { $groupBy = ''; } - return 'SELECT ' . implode(', ', $columns) + $query = 'SELECT ' . implode(', ', $columns) . ' FROM statistic_hw shw ' . implode(' ', $this->joins) . ' WHERE ' . implode(' AND ', $this->where) . $groupBy; + //error_log($query); + return $query; } -}
\ No newline at end of file +} |