Compare commits

..

3 commits

Author SHA1 Message Date
Benjamin Renard
9030a2ba79
Update translations 2023-11-20 19:42:47 +01:00
Benjamin Renard
abbfd70319
Tpl: add display_ajax_error() helper method 2023-11-20 19:42:47 +01:00
Benjamin Renard
174ff2bb36
Db: add count() helper method 2023-11-20 19:42:46 +01:00

View file

@ -202,7 +202,7 @@ class Db {
* @param array|string $where WHERE clause(s) as expected by Envms\FluentPDO\Query
* @param array|string|null $what What to count (optional, default: "*")
* @param array<array{0: 'LEFT'|'RIGHT'|'INNER'|'OUTER'|'FULL', 1: string, 2: string}>|array{0: 'LEFT'|'RIGHT'|'INNER'|'OUTER'|'FULL', 1: string, 2: string} $joins Join specification as array (see apply_joins())
* @return array|false
* @return int|false
*/
public function count($table, $where, $what=null, $joins=null) {
try {