@@ -93,8 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function applySqlFunction(string $function, string $column) |
95 | 95 | { |
96 | - return ($function ? ($function == 'unixepoch' ? "DATETIME($column, '$function')" : |
|
97 | - ($function == 'count distinct' ? 'COUNT(DISTINCT ' : strtoupper("$function(")) . "$column)") : $column); |
|
96 | + return ($function ? ($function == 'unixepoch' ? "DATETIME($column, '$function')" : ($function == 'count distinct' ? 'COUNT(DISTINCT ' : strtoupper("$function(")) . "$column)") : $column); |
|
98 | 97 | } |
99 | 98 | |
100 | 99 | /** |
@@ -169,7 +168,7 @@ discard block |
||
169 | 168 | } |
170 | 169 | } |
171 | 170 | if (\preg_match("~ IDENTIFIED BY PASSWORD '([^']+)~", $row[0], $match)) { |
172 | - $password = $match[1]; |
|
171 | + $password = $match[1]; |
|
173 | 172 | } |
174 | 173 | } |
175 | 174 | } |