Set the user context to the domain name.

This commit is contained in:
Mark Crane
2015-03-10 10:48:50 +00:00
parent a051c70ad1
commit 05033b14d2
-5
View File
@@ -304,13 +304,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
else { else {
//if the user_context was not set then set the default value //if the user_context was not set then set the default value
if (strlen($user_context) == 0) { if (strlen($user_context) == 0) {
if (count($_SESSION["domains"]) > 1) {
$user_context = $_SESSION['domain_name']; $user_context = $_SESSION['domain_name'];
} }
else {
$user_context = "default";
}
}
} }
//add or update the database //add or update the database