From 9902e823b9807314cf24b681ac917b86099d85d6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 10 May 2023 21:53:39 -0600 Subject: [PATCH] Use empty function for the request username and key --- core/authentication/resources/classes/plugins/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 6128c3e938..dcca906a49 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -40,7 +40,7 @@ class plugin_database { } //show the authentication code view - if ($_REQUEST["username"] == '' && $_REQUEST["key"] == '') { + if (empty($_REQUEST["username"]) && empty($_REQUEST["key"])) { //login logo source if (isset($_SESSION['theme']['logo_login']['text']) && $_SESSION['theme']['logo_login']['text'] != '') {