From e0f14798fef9a5861b01c45bede6d6198619876d Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 3 May 2016 22:15:29 +0000 Subject: [PATCH] Updated services box to be 2 for down --- html/pages/front/default.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/pages/front/default.php b/html/pages/front/default.php index 1709f842a3..85868f61df 100644 --- a/html/pages/front/default.php +++ b/html/pages/front/default.php @@ -80,11 +80,11 @@ if ($config['warn']['ifdown']) { FIXME service permissions? seem nonexisting now.. */ // Service down boxes if (is_admin() === true || is_read() === true) { - $sql = "SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id AND service_status = 'down' AND D.ignore = '0' AND S.service_ignore = '0' AND `D`.`status` = '1' LIMIT ".$config['front_page_down_box_limit']; + $sql = "SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id AND service_status = 'down' AND D.ignore = '0' AND S.service_ignore = '0' AND `D`.`status` = '2' LIMIT ".$config['front_page_down_box_limit']; $param[] = ''; } else { - $sql = "SELECT * FROM services AS S, devices AS D, devices_perms AS P WHERE P.`user_id` = ? AND P.`device_id` = D.`device_id` AND S.`device_id` = D.`device_id` AND S.`service_ignore` = '0' AND S.`service_disabled` = '0' AND S.`service_status` = '0' AND `D`.`status` = '1' LIMIT ".$config['front_page_down_box_limit']; + $sql = "SELECT * FROM services AS S, devices AS D, devices_perms AS P WHERE P.`user_id` = ? AND P.`device_id` = D.`device_id` AND S.`device_id` = D.`device_id` AND S.`service_ignore` = '0' AND S.`service_disabled` = '0' AND S.`service_status` = '0' AND `D`.`status` = '2' LIMIT ".$config['front_page_down_box_limit']; $param[] = $_SESSION['user_id']; }