Project

General

Profile

« Previous | Next » 

Revision 7e3ea4a8

Added by Christian McDonald over 2 years ago

Rector some config unsets with complex paths.

View differences:

src/usr/local/www/system.php
438 438
					$pconfig[$outdnsgwname] = $thisdnsgwname;
439 439
				} else {
440 440
					// Note: when no DNS GW name is chosen, the entry is set to "none", so actually this case never happens.
441
					unset($config['system'][$outdnsgwconfigname]);
441
					config_del_path("system/{$outdnsgwconfigname}");
442 442
					$pconfig[$outdnsgwname] = "";
443 443
				}
444 444
				if ($_POST[$dnshostname]) {
......
446 446
					$pconfig[$outdnshostname] = $thisdnshostname;
447 447
				} else {
448 448
					// Note: when no DNS hostname is chosen, unset the value.
449
					unset($config['system'][$outdnshostconfigname]);
449
					config_del_path("system/{$outdnshostconfigname}");
450 450
					$pconfig[$outdnshostname] = "";
451 451
				}
452 452
				$outdnscounter++;
......
462 462
		$olddnsgwconfigname = "dns{$oldgwcounter}gw";
463 463
		while (isset($config['system'][$olddnsgwconfigname])) {
464 464
			if (empty($config['system']['dnsserver'][$oldgwcounter - 1])) {
465
				unset($config['system'][$olddnsgwconfigname]);
465
				config_del_path("system/{$olddnsgwconfigname}");
466 466
			}
467 467
			$oldgwcounter++;
468 468
			$olddnsgwconfigname = "dns{$oldgwcounter}gw";

Also available in: Unified diff