Project

General

Profile

« Previous | Next » 

Revision 9a456170

Added by Darren Embry about 13 years ago

fix for: Spanning Tree interface priority options do not alter Bridge

http://redmine.pfsense.org/issues/2261

View differences:

etc/inc/util.inc
1645 1645
	return $result;
1646 1646
}
1647 1647

  
1648
/*
1649
 * converts a string like "a,b,c,d"
1650
 * into an array like array("a" => "b", "c" => "d")
1651
 */
1652
function explode_assoc($delimiter, $string) {
1653
	$array = explode($delimiter, $string);
1654
	$result = array();
1655
	$numkeys = floor(count($array) / 2);
1656
	for ($i = 0; $i < $numkeys; $i += 1) {
1657
		$result[$array[$i * 2]] = $array[$i * 2 + 1];
1658
	}
1659
	return $result;
1660
}
1661

  
1648 1662
?>

Also available in: Unified diff