Project

General

Profile

« Previous | Next » 

Revision 8a228b83

Added by Stephen Jones almost 7 years ago

Fixes #8732 PHP7 illegal string offsets

View differences:

src/usr/local/www/services_dhcp.php
513 513
			if ($act == "newpool") {
514 514
				$dhcpdconf = array();
515 515
			} else {
516
				if (!is_array($config['dhcpd'])) {
517
					$config['dhcpd']= array();
518
				}
516 519
				if (!is_array($config['dhcpd'][$if])) {
517 520
					$config['dhcpd'][$if] = array();
518 521
				}
......
527 530
				exit;
528 531
			}
529 532
		}
533
		if (!is_array($dhcpdconf)) {
534
			$dhcpdconf = array();
535
		}
530 536
		if (!is_array($dhcpdconf['range'])) {
531 537
			$dhcpdconf['range'] = array();
532 538
		}

Also available in: Unified diff