Commit 489d5384 authored by Marcin Haba's avatar Marcin Haba
Browse files

baculum: Tweak improve object groupping

parent d07be344
......@@ -225,7 +225,8 @@ class Database extends APIModule {
if (is_string($group_by) && is_array($result)) {
// Group results
$new_result = [];
for ($i = 0; $i < count($result); $i++) {
$len = count($result);
for ($i = 0; $i < $len; $i++) {
if (!property_exists($result[$i], $group_by)) {
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment