diff options
author | NewEraCracker <neweracracker@gmail.com> | 2016-03-21 08:51:23 +0000 |
---|---|---|
committer | NewEraCracker <neweracracker@gmail.com> | 2016-03-21 08:51:23 +0000 |
commit | 28e3d579477a078c013628c0fb17a7b31ad0b850 (patch) | |
tree | 04baa273d289e9ecf21d079d2274e7753c81a86f /src/usr | |
parent | d3f3b75f1a1a7428600c078540a8ea46cb70f475 (diff) | |
download | pfsense-28e3d579477a078c013628c0fb17a7b31ad0b850.zip pfsense-28e3d579477a078c013628c0fb17a7b31ad0b850.tar.gz |
Echo boolean value instead of string
Prior to this change, code would echo an empty string if false and 1 if true. In all other files, with similar code, boolean representation is printed.
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/services_unbound.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/services_unbound.php b/src/usr/local/www/services_unbound.php index bf1231f..4408d2a 100644 --- a/src/usr/local/www/services_unbound.php +++ b/src/usr/local/www/services_unbound.php @@ -406,7 +406,7 @@ events.push(function() { var text; // On page load decide the initial state based on the data. if (ispageload) { - showadvcustom = "<?=$customoptions?>"; + showadvcustom = <?=($customoptions ? 'true' : 'false');?>; } else { // It was a click, swap the state. showadvcustom = !showadvcustom; |