Get the domain settings only if the domain_uuid has a value

This commit is contained in:
Mark Crane 2014-07-25 09:08:51 +00:00
parent 0e49a135c6
commit 9dcf8aa2a8
1 changed files with 33 additions and 31 deletions

View File

@ -81,6 +81,7 @@
} }
//get the domains settings //get the domains settings
if (strlen($_SESSION["domain_uuid"]) > 0) {
$sql = "select * from v_domain_settings "; $sql = "select * from v_domain_settings ";
$sql .= "where domain_uuid = '" . $_SESSION["domain_uuid"] . "' "; $sql .= "where domain_uuid = '" . $_SESSION["domain_uuid"] . "' ";
$sql .= "and domain_setting_enabled = 'true' "; $sql .= "and domain_setting_enabled = 'true' ";
@ -115,6 +116,7 @@
} }
} }
} }
}
//get the user settings //get the user settings
if (strlen($_SESSION["user_uuid"]) > 0) { if (strlen($_SESSION["user_uuid"]) > 0) {