Skip to content

Commit

Permalink
Only print logged in user name if we are actually logged in, in order…
Browse files Browse the repository at this point in the history
… to avoid errors in logs
  • Loading branch information
Isaac Connor committed Oct 5, 2023
1 parent 38be4fe commit 9ff31ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/ajax/modals/logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</button>
</div>
<div class="modal-body">
<p><?php echo sprintf( $CLANG['CurrentLogin'], validHtmlStr($user->Username()) ) ?></p>
<p><?php echo $user ? sprintf( $CLANG['CurrentLogin'], validHtmlStr($user->Username()) ) : translate('You are not logged in.') ?></p>
<?php if ( canView('System') ) { ?>
<p>Other logged in users:<br/>
<table class="table table-striped">
Expand Down

0 comments on commit 9ff31ab

Please sign in to comment.