Skip to content

Commit

Permalink
According to php docs, these tests are equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannon committed Jun 27, 2024
1 parent 5af285d commit 8b3eb0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/classes/WebCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,7 @@ function _initConnect() {
$lastname = $login_lastname;
$fullname = $login_fullname;
$is_admin = ( $login_is_admin == 'Y' );
$is_nonuser = ( ! empty ( $GLOBALS['login_is_nonuser'] )
&& $GLOBALS['login_is_nonuser'] );
$is_nonuser = ! empty ( $GLOBALS['login_is_nonuser'] );
$user_email = $login_email;
} else {
// Invalid login.
Expand Down

0 comments on commit 8b3eb0c

Please sign in to comment.