Fix the domain array settings
This commit is contained in:
parent
b64b6055a6
commit
6d1e4033a9
|
|
@ -99,6 +99,16 @@
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
}
|
}
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
|
//unset the arrays that domains are overriding
|
||||||
|
foreach ($result as $row) {
|
||||||
|
$name = $row['domain_setting_name'];
|
||||||
|
$category = $row['domain_setting_category'];
|
||||||
|
$subcategory = $row['domain_setting_subcategory'];
|
||||||
|
if ($name == "array") {
|
||||||
|
unset($_SESSION[$category][$subcategory]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//set the settings as a session
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$name = $row['domain_setting_name'];
|
$name = $row['domain_setting_name'];
|
||||||
$category = $row['domain_setting_category'];
|
$category = $row['domain_setting_category'];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue