Skip to content

Commit

Permalink
avoid undefined index warnings in customer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hannob committed Feb 4, 2024
1 parent e21f00c commit 58e67aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/su/su_customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
output('<p>Zu Ihrem Kundenkonto gehören die folgenden Benutzer. Klicken Sie einen Benutzernamen an um zu diesem zu wechseln.</p><ul>');

foreach ($users as $u) {
if ($u['uid'] == $_SESSION['userinfo']['uid']) {
if (isset($_SESSION['userinfo']['uid']) && ($u['uid'] == $_SESSION['userinfo']['uid'])) {
output("<li>{$u['username']} - (Eigener Benutzeraccount)</li>");
continue;
}
Expand Down

0 comments on commit 58e67aa

Please sign in to comment.