Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bacula Community Edition
Bacula Community
Commits
489d5384
Commit
489d5384
authored
Dec 13, 2022
by
Marcin Haba
Browse files
baculum: Tweak improve object groupping
parent
d07be344
Changes
1
Hide whitespace changes
Inline
Side-by-side
gui/baculum/protected/API/Modules/Database.php
View file @
489d5384
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment