--- cacti-0.8.6h/host.php 2006-01-03 21:08:30.000000000 -0600 +++ cacti-fixed/host.php 2006-01-06 22:45:51.630701318 -0600 @@ -726,18 +726,18 @@ unset($_REQUEST["host_status"]); } - if (!empty($_SESSION["sess_host_status"])) { - if ($_SESSION["sess_host_status"] != $_REQUEST["host_status"]) { - $_REQUEST["page"] = 1; - } - } - /* remember these search fields in session vars so we don't have to keep passing them around */ load_current_session_value("page", "sess_device_current_page", "1"); load_current_session_value("filter", "sess_device_filter", ""); load_current_session_value("host_template_id", "sess_device_host_template_id", "-1"); load_current_session_value("host_status", "sess_host_status", "-1"); + if (!empty($_SESSION["sess_host_status"])) { + if ($_SESSION["sess_host_status"] != $_REQUEST["host_status"]) { + $_REQUEST["page"] = 1; + } + } + html_start_box("Devices", "98%", $colors["header"], "3", "center", "host.php?action=edit&host_template_id=" . $_REQUEST["host_template_id"] . "&host_status=" . $_REQUEST["host_status"]); include("./include/html/inc_device_filter_table.php");