diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/annotations.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 674af14b1..94e5381ce 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -648,7 +648,8 @@ $query .= get_access_sql_suffix("a"); // now add access
$query .= ' and ' . get_access_sql_suffix("e"); // now add access
$query .= ' order by sum ' . $orderdir;
-
+ $query .= ' group by e.guid';
+
return get_data($query, "entity_row_to_elggstar");
}
|