Skip to content

Commit 7070ef8

Browse files
committed
add default values to pi-mgmt.php
1 parent fa3effa commit 7070ef8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webroot/admin/pi-mgmt.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ class="filterSearch"
105105
</tr>
106106

107107
<?php
108-
$owner_attributes = $LDAP->getAllPIGroupOwnerAttributes(["uid", "gecos", "mail"]);
108+
$owner_attributes = $LDAP->getAllPIGroupOwnerAttributes(
109+
["uid", "gecos", "mail"],
110+
default_values: ["gecos" => "(not found)", "mail" => "(not found)"]
111+
);
109112
usort($owner_attributes, fn($a, $b) => strcmp($a["uid"][0], $b["uid"][0]));
110113
foreach ($owner_attributes as $attributes) {
111114
$mail = $attributes["mail"][0];

0 commit comments

Comments
 (0)