]> git.pld-linux.org Git - packages/cacti.git/blame - tree_console_missing_hosts.patch
- update
[packages/cacti.git] / tree_console_missing_hosts.patch
CommitLineData
4086ef97
GS
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
3@@ -328,7 +328,7 @@
4 while ($i > 1) {
5 $i--;
6
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;
10
11 $effective = @$_SESSION[$parent_variable];
12@@ -365,8 +365,6 @@
13 @returns - the string representing the leaf position
14 */
15 function tree_tier_string($order_key, $chars_per_tier = CHARS_PER_TIER) {
16- $root_test = str_pad('', $chars_per_tier, '0');
17-
18 $new_string = preg_replace("/0+$/",'',$order_key);
19
20 return $new_string;
This page took 0.07537 seconds and 4 git commands to generate.