fix: disabled service status

This commit is contained in:
Ely Deckers 2023-04-01 12:49:49 +02:00
parent 134cbe0cd9
commit f8c81f11de
1 changed files with 7 additions and 5 deletions

View File

@ -472,31 +472,33 @@ function pfz_service_value($name,$value){
$status = get_service_status($service);
if ($status=="") $status = 0;
echo $status;
break;
return;
case "name":
echo $namecfr;
break;
return;
case "enabled":
if (is_service_enabled($service['name']))
echo 1;
else
echo 0;
break;
return;
case "run_on_carp_slave":
if (in_array($carpcfr,$stopped_on_carp_slave))
echo 0;
else
echo 1;
break;
return;
default:
echo $service[$value];
break;
return;
}
}
}
echo 0;
}