fix only_full_group_by mysql default behaviour

This commit is contained in:
Andrej Rode 2017-08-16 00:19:16 +02:00
parent b1af1f9cc2
commit dc6fb49f44
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ function User_unconfirmed_AngelTypes($user) {
AND `UserAngelTypes`.`supporter`=TRUE
AND `AngelTypes`.`restricted`=TRUE
AND `UnconfirmedMembers`.`confirm_user_id` IS NULL
GROUP BY `UserAngelTypes`.`angeltype_id`
GROUP BY `UserAngelTypes`.`angeltype_id`, `UserAngelTypes`.`id`
ORDER BY `AngelTypes`.`name`");
if ($result === false) {
engelsystem_error("Unable to load user angeltypes.");