1 --- cacti-0.8.6j/lib/html_tree.php 2007-01-17 19:23:10.000000000 -0500
2 +++ cacti-0.8.6j-patch/lib/html_tree.php 2007-01-27 15:48:50.390625000 -0500
7 - $parent_tier = substr($tier_string, 0, $i * CHARS_PER_TIER);
8 + $parent_tier = tree_tier_string(substr($tier_string, 0, $i * CHARS_PER_TIER));
9 $parent_variable = "sess_tree_leaf_expand_" . $leaf["graph_tree_id"] . "_" . $parent_tier;
11 $effective = @$_SESSION[$parent_variable];
13 @returns - the string representing the leaf position
15 function tree_tier_string($order_key, $chars_per_tier = CHARS_PER_TIER) {
16 - $root_test = str_pad('', $chars_per_tier, '0');
18 $new_string = preg_replace("/0+$/",'',$order_key);