Skip to content

Commit fde87a0

Browse files
authored
fix bug with default values (#436)
1 parent 4297feb commit fde87a0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

webroot/admin/pi-mgmt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class="filterSearch"
119119
$owner_attributes = $LDAP->getUsersAttributes(
120120
$owner_uids,
121121
["uid", "gecos", "mail"],
122-
default_values: ["gecos" => "(not found)", "mail" => "(not found)"]
122+
default_values: ["gecos" => ["(not found)"], "mail" => ["(not found)"]]
123123
);
124124
usort($owner_attributes, fn($a, $b) => strcmp($a["uid"][0], $b["uid"][0]));
125125
foreach ($owner_attributes as $attributes) {

webroot/admin/user-mgmt.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ class="filterSearch"
4848
$UID2PIGIDs = $LDAP->getQualifiedUID2PIGIDs();
4949
$user_attributes = $LDAP->getQualifiedUsersAttributes(
5050
["uid", "gecos", "o", "mail"],
51-
default_values: ["gecos" => "(not found)", "o" => "(not found)", "mail" => "(not found)"]
51+
default_values: [
52+
"gecos" => ["(not found)"],
53+
"o" => ["(not found)"],
54+
"mail" => ["(not found)"]
55+
]
5256
);
5357
usort($user_attributes, fn ($a, $b) => strcmp($a["uid"][0], $b["uid"][0]));
5458
foreach ($user_attributes as $attributes) {

0 commit comments

Comments
 (0)