diff options
author | Ermal <eri@pfsense.org> | 2013-09-03 14:20:31 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-09-03 14:20:55 +0000 |
commit | 628a64a9e52f5aa8d27155cd7dcb0cd19cf797c6 (patch) | |
tree | a1231ea081fa2e4aef4867554c065eac2b170e91 /usr/local/www | |
parent | 7ca8bef40e29d1a4ef7a641141401f51297cc101 (diff) | |
download | pfsense-628a64a9e52f5aa8d27155cd7dcb0cd19cf797c6.zip pfsense-628a64a9e52f5aa8d27155cd7dcb0cd19cf797c6.tar.gz |
Fix issue reported on http://forum.pfsense.org/index.php/topic,66160.0.html
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/status_dhcpv6_leases.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/usr/local/www/status_dhcpv6_leases.php b/usr/local/www/status_dhcpv6_leases.php index f891728..089d31a 100644 --- a/usr/local/www/status_dhcpv6_leases.php +++ b/usr/local/www/status_dhcpv6_leases.php @@ -104,12 +104,17 @@ function leasecmp($a, $b) { function adjust_gmt($dt) { global $config; - $dhcpdv6 = $config['dhcpdv6']; - foreach ($dhcpdv6 as $dhcpv6leaseinlocaltime) { - $dhcpv6leaseinlocaltime = $dhcpv6leaseinlocaltime['dhcpv6leaseinlocaltime']; - if ($dhcpv6leaseinlocaltime == "yes") - break; + + $dhcpv6leaseinlocaltime == "no"; + if (is_array($config['dhcpdv6'])) { + $dhcpdv6 = $config['dhcpdv6']; + foreach ($dhcpdv6 as $dhcpv6leaseinlocaltime) { + $dhcpv6leaseinlocaltime = $dhcpv6leaseinlocaltime['dhcpv6leaseinlocaltime']; + if ($dhcpv6leaseinlocaltime == "yes") + break; + } } + $timezone = $config['system']['timezone']; $ts = strtotime($dt . " GMT"); if ($dhcpv6leaseinlocaltime == "yes") { |