浏览代码

Use empty function for the request username and key

FusionPBX 2 年之前
父节点
当前提交
758d672404
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/authentication/resources/classes/plugins/database.php

+ 1 - 1
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'] != '') {