From bf810ec8c449110ead762c844e1ddac39f248f49 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 20 Feb 2023 10:20:59 -0500 Subject: [PATCH] test for existence of username in session to prevent error outputs --- web/includes/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/auth.php b/web/includes/auth.php index d87e38d2b..fa3d5d3cc 100644 --- a/web/includes/auth.php +++ b/web/includes/auth.php @@ -364,7 +364,7 @@ function get_auth_relay() { return 'auth='.generateAuthHash(ZM_AUTH_HASH_IPS); } else if (ZM_AUTH_RELAY == 'plain') { // password probably needs to be escaped - return 'username='.$_SESSION['username'].'&password='.urlencode(isset($_SESSION['password']) ? $_SESSION['password'] : ''); + return 'username='.(isset($_SESSION['username'])?$_SESSION['username']:'').'&password='.urlencode(isset($_SESSION['password']) ? $_SESSION['password'] : ''); } else if (ZM_AUTH_RELAY == 'none') { return 'username='.$_SESSION['username']; } else {