summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/services_unbound.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/usr/local/www/services_unbound.php b/src/usr/local/www/services_unbound.php
index 7b5597f..8480b4a 100644
--- a/src/usr/local/www/services_unbound.php
+++ b/src/usr/local/www/services_unbound.php
@@ -221,6 +221,12 @@ if ($_POST) {
}
}
+if ($pconfig['custom_options']) {
+ $customoptions = true;
+} else {
+ $customoptions = false;
+}
+
if ($_GET['act'] == "del") {
if ($_GET['type'] == 'host') {
if ($a_hosts[$_GET['id']]) {
@@ -400,10 +406,11 @@ events.push(function() {
var text;
// On page load decide the initial state based on the data.
if (ispageload) {
- if ('<?=$pconfig['custom_options']?>' == '') {
- showadvcustom = false;
- } else {
+ var customoptions = "<?=$customoptions?>";
+ if (customoptions) {
showadvcustom = true;
+ } else {
+ showadvcustom = false;
}
} else {
// It was a click, swap the state.
OpenPOWER on IntegriCloud