Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37867504
en ru br
Репозитории ALT
S:1.2.24-alt1
5.1: 0.8.7b-alt4
4.1: 0.8.7b-alt2
4.0: 0.8.6j-alt1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: cacti

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: cacti-0.8.6j-tree_console_missing_hosts.patch
Скачать


--- cacti-0.8.6j/lib/html_tree.php	2007-01-17 19:23:10.000000000 -0500
+++ cacti-0.8.6j-patch/lib/html_tree.php	2007-01-27 15:48:50.390625000 -0500
@@ -328,7 +328,7 @@
 	while ($i > 1) {
 		$i--;
 
-		$parent_tier = substr($tier_string, 0, $i * CHARS_PER_TIER);
+		$parent_tier = tree_tier_string(substr($tier_string, 0, $i * CHARS_PER_TIER));
 		$parent_variable = "sess_tree_leaf_expand_" . $leaf["graph_tree_id"] . "_" . $parent_tier;
 
 		$effective = @$_SESSION[$parent_variable];
@@ -365,8 +365,6 @@
    @returns - the string representing the leaf position
 */
 function tree_tier_string($order_key, $chars_per_tier = CHARS_PER_TIER) {
-	$root_test = str_pad('', $chars_per_tier, '0');
-
 	$new_string = preg_replace("/0+$/",'',$order_key);
 
 	return $new_string;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin