From a929acf0ce4a6c7bdf90331771fe26e9e99f4727 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 16 Jan 2017 23:20:46 +0100 Subject: Only show the DHCP Leases Status link if DHCP server is enabled Does not make sense otherwise, can only contain stale data. (cherry picked from commit 8ed692516534248e58a20aec70f8cf3035d35348) --- .../local/www/widgets/widgets/wake_on_lan.widget.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php index 9ed1de7..bf8118d 100644 --- a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php +++ b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php @@ -3,7 +3,7 @@ * wake_on_lan.widget.php * * part of pfSense (https://www.pfsense.org) - * Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate) + * Copyright (c) 2004-2017 Rubicon Communications, LLC (Netgate) * Copyright (c) 2010 Yehuda Katz * All rights reserved. * @@ -141,7 +141,20 @@ endif; ?> -

+ $dhcp) { + if (isset($dhcp['enable']) && isset($config['interfaces'][$dhcpif]['enable'])) { + $dhcpd_enabled = true; + break; + } + } +} +?> + +

+