Skip to content

Commit 2129246

Browse files
committed
Fix showing user name if auth backend doesn't support listing.
1 parent 85fbe38 commit 2129246

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/shares/edit.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ foreach ($userperms as $user => $uperm) {
179179
$user = $registry->convertUsername($user, false);
180180
?>
181181
<tr>
182-
<td class="light"><?php echo htmlspecialchars($userList[$user]) ?><input type="hidden" name="u_names[<?php echo htmlspecialchars($user) ?>]" value="<?php echo htmlspecialchars($user) ?>" /></td>
182+
<td class="light"><?php echo htmlspecialchars(isset($userList[$user]) ? $userList[$user] : $user) ?><input type="hidden" name="u_names[<?php echo htmlspecialchars($user) ?>]" value="<?php echo htmlspecialchars($user) ?>" /></td>
183183
<td align="center">
184184
<input type="checkbox" id="u_show_<?php echo str_replace('@', '_', htmlspecialchars($user)) ?>" name="u_show[<?php echo htmlspecialchars($user) ?>]"<?php echo ($uperm & Horde_Perms::SHOW) ? ' checked="checked"' : '' ?> />
185185
<label for="u_show_<?php echo str_replace('@', '_', htmlspecialchars($user)) ?>" class="hidden"><?php echo _("Show") ?></label>

0 commit comments

Comments
 (0)