widgets/wol: Illegal string offset warning; fixes #185

Submitted by: @reetp
This commit is contained in:
Franco Fichtner 2015-05-19 11:59:08 +02:00
parent d3239e081e
commit d9335b6d7f

View File

@ -31,7 +31,7 @@ $nocsrf = true;
require_once("guiconfig.inc");
require_once("widgets/include/wake_on_lan.inc");
if (is_array($config['wol']['wolentry'])) {
if (isset($config['wol']['wolentry'])) {
$wolcomputers = $config['wol']['wolentry'];
} else {
$wolcomputers = array();