Project

General

Profile

« Previous | Next » 

Revision b767ea71

Added by Jim Pingle almost 3 years ago

Skip empty gateways on interfaces.php Issue #13446

View differences:

src/usr/local/www/interfaces.php
1875 1875

  
1876 1876
	$list = array("none" => gettext("None"));
1877 1877
	foreach ($a_gateways as $gateway) {
1878
		if (empty($gateway)) {
1879
			continue;
1880
		}
1878 1881
		if (($gateway['interface'] == $if) && (is_ipaddrv4($gateway['gateway']))) {
1879 1882
			$list[$gateway['name']] = $gateway['name'] . " - " . $gateway['gateway'];
1880 1883
		}
......
1888 1891

  
1889 1892
	$list = array("none" => gettext("None"));
1890 1893
	foreach ($a_gateways as $gateway) {
1894
		if (empty($gateway)) {
1895
			continue;
1896
		}
1891 1897
		if (($gateway['interface'] == $if) && (is_ipaddrv6($gateway['gateway']))) {
1892 1898
			$list[$gateway['name']] = $gateway['name'] . " - " . $gateway['gateway'];
1893 1899
		}

Also available in: Unified diff