From 588ceb595da0428a52470d8e814fc5a38b6b63cc Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 5 Apr 2019 18:13:27 +0200 Subject: [PATCH] net/wol: fix count on iterator PR: https://forum.opnsense.org/index.php?topic=12327.0 --- net/wol/Makefile | 1 + .../widgets/widgets/wake_on_lan.widget.php | 50 +++++++++---------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/net/wol/Makefile b/net/wol/Makefile index d42c18ac4..4f3d67810 100644 --- a/net/wol/Makefile +++ b/net/wol/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= wol PLUGIN_VERSION= 2.1 +PLUGIN_REVISION= 1 PLUGIN_DEPENDS= wol PLUGIN_COMMENT= Wake on LAN Service PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/wol/src/www/widgets/widgets/wake_on_lan.widget.php b/net/wol/src/www/widgets/widgets/wake_on_lan.widget.php index 38d4c2f2c..8d77e8969 100644 --- a/net/wol/src/www/widgets/widgets/wake_on_lan.widget.php +++ b/net/wol/src/www/widgets/widgets/wake_on_lan.widget.php @@ -1,30 +1,30 @@ wolentry->iterateItems()) == 0):?> + if (count(iterator_to_array($wol->wolentry->iterateItems())) == 0):?>