Fix status logic for disabled services
This commit is contained in:
parent
393a6a00ee
commit
918c58dfab
|
@ -471,7 +471,7 @@ function pfz_service_value($name,$value){
|
||||||
$status = get_service_status($service);
|
$status = get_service_status($service);
|
||||||
if ($status=="") $status = 0;
|
if ($status=="") $status = 0;
|
||||||
// Don't trigger for disabled services
|
// Don't trigger for disabled services
|
||||||
if (is_service_enabled($service['name'])) $status = 1;
|
if (!is_service_enabled($service['name'])) $status = 1;
|
||||||
echo $status;
|
echo $status;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue