diff options
author | Joecowboy <i7wasn7m3@gmail.com> | 2012-02-25 19:06:08 -0600 |
---|---|---|
committer | Joecowboy <i7wasn7m3@gmail.com> | 2012-02-25 19:06:08 -0600 |
commit | df321263a43b79580662dbf0d71f7c81f3c3486f (patch) | |
tree | 5d97658940f834e8100a7c91719d1dd083b93cee /usr/local/www/status_dhcp_leases.php | |
parent | ee0f23b4fda71e60d5d2959a9ac484b78799eeec (diff) | |
download | pfsense-df321263a43b79580662dbf0d71f7c81f3c3486f.zip pfsense-df321263a43b79580662dbf0d71f7c81f3c3486f.tar.gz |
need to break out of foreach loop once it finds there is a local time has been selected by any interface of DHCP.
Diffstat (limited to 'usr/local/www/status_dhcp_leases.php')
-rwxr-xr-x | usr/local/www/status_dhcp_leases.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/status_dhcp_leases.php b/usr/local/www/status_dhcp_leases.php index 5b65cc9..f1dec97 100755 --- a/usr/local/www/status_dhcp_leases.php +++ b/usr/local/www/status_dhcp_leases.php @@ -97,8 +97,11 @@ function leasecmp($a, $b) { function adjust_gmt($dt) { global $config; $dhcpd = $config['dhcpd']; - foreach ($dhcpd as $dhcpleaseinlocaltime) + foreach ($dhcpd as $dhcpleaseinlocaltime) { $dhcpleaseinlocaltime = $dhcpleaseinlocaltime['dhcpleaseinlocaltime']; + if ($dhcpleaseinlocaltime == "yes") + break; + } $timezone = $config['system']['timezone']; $ts = strtotime($dt . " GMT"); if ($dhcpleaseinlocaltime == "yes") { |