summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAndrej Rode <mail@andrejro.de>2017-08-16 00:19:16 +0200
committerAndrej Rode <mail@andrejro.de>2017-08-16 00:19:16 +0200
commitdc6fb49f44c12e2bc354d7355d5cd903017568e9 (patch)
tree27a315a712e02b071b455d736b1fa12cef69a5c8 /includes
parentb1af1f9cc2497087e5de47970024c235a17ea4c2 (diff)
fix only_full_group_by mysql default behaviour
Diffstat (limited to 'includes')
-rw-r--r--includes/model/UserAngelTypes_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/UserAngelTypes_model.php b/includes/model/UserAngelTypes_model.php
index 11366cdf..410a292f 100644
--- a/includes/model/UserAngelTypes_model.php
+++ b/includes/model/UserAngelTypes_model.php
@@ -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.");