Project

General

Profile

« Previous | Next » 

Revision c6c398c6

Added by Jim Pingle over 6 years ago

Fix #9121: Initialize arrays to prevent PHP 7 errors

View differences:

src/usr/local/www/services_wol.php
32 32

  
33 33
require_once("guiconfig.inc");
34 34

  
35
if (!is_array($config['wol'])) {
36
	$config['wol'] = array();
37
}
38

  
39
if (!is_array($config['wol']['wolentry'])) {
40
	$config['wol']['wolentry'] = array();
41
}
42

  
35
init_config_arr(array('wol', 'wolentry'));
43 36
$a_wol = &$config['wol']['wolentry'];
44 37

  
45 38
if ($_REQUEST['wakeall'] != "") {

Also available in: Unified diff