diff --git a/includes/model/UserAngelTypes_model.php b/includes/model/UserAngelTypes_model.php index 880faf9d..0e24a1bb 100644 --- a/includes/model/UserAngelTypes_model.php +++ b/includes/model/UserAngelTypes_model.php @@ -60,7 +60,7 @@ function User_unconfirmed_AngelTypes($userId) AND `UserAngelTypes`.`supporter`=TRUE AND `AngelTypes`.`restricted`=TRUE AND `UnconfirmedMembers`.`confirm_user_id` IS NULL - GROUP BY `UserAngelTypes`.`angeltype_id`, `UserAngelTypes`.`id` + GROUP BY `UserAngelTypes`.`angeltype_id`, `UserAngelTypes`.`id`, AngelTypes.name, UserAngelTypes.user_id, UserAngelTypes.confirm_user_id, UserAngelTypes.supporter ORDER BY `AngelTypes`.`name` ', [$userId]); } diff --git a/src/Controllers/Metrics/Stats.php b/src/Controllers/Metrics/Stats.php index 9aed2a3d..66818ec5 100644 --- a/src/Controllers/Metrics/Stats.php +++ b/src/Controllers/Metrics/Stats.php @@ -309,7 +309,7 @@ class Stats $this->workSecondsQuery($done, $freeloaded), 'UID', 'SUM(end - start)', - 'end - start' + 'SUM(end - start)' ); } @@ -364,7 +364,7 @@ class Stats Worklog::query(), 'user_id', 'SUM(hours * 60 * 60)', - 'hours * 60 * 60' + 'SUM(hours * 60 * 60)' ); }