瀏覽代碼

Update login.php

FusionPBX 8 年之前
父節點
當前提交
ba1dd4b964
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      resources/login.php

+ 5 - 2
resources/login.php

@@ -29,8 +29,11 @@
 	$text = $language->get(null,'core/user_settings');
 	$text = $language->get(null,'core/user_settings');
 
 
 //get the http values and set as variables
 //get the http values and set as variables
-	$path = check_str($_GET["path"]);
-	$msg = check_str($_GET["msg"]);
+	if (isset($_GET["path"])) { $path = check_str($_GET["path"]); } else { $path = null; }
+	if (isset($_GET["msg"])) { $msg = check_str($_GET["msg"]); } else { $msg = null; }
+
+//set variable if not set
+	if (!isset($_SESSION['login']['domain_name_visible']['boolean'])) { $_SESSION['login']['domain_name_visible']['boolean'] = null; }
 
 
 //set a default login destination
 //set a default login destination
 	if (strlen($_SESSION['login']['destination']['url']) == 0) {
 	if (strlen($_SESSION['login']['destination']['url']) == 0) {