summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/widgets/widgets/wake_on_lan.widget.php6
1 files changed, 4 insertions, 2 deletions
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 b4d22de..2a5dca1 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
@@ -72,8 +72,10 @@ if ($_POST) {
$validNames = array();
- foreach ($config['wol']['wolentry'] as $wolent) {
- array_push($validNames, get_wolent_key($wolent));
+ if (is_array($config['wol']['wolentry'])) {
+ foreach ($config['wol']['wolentry'] as $wolent) {
+ array_push($validNames, get_wolent_key($wolent));
+ }
}
if (is_array($_POST['show'])) {
OpenPOWER on IntegriCloud