mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
system: properly initialise $filter array
This commit is contained in:
parent
f9d5f415e4
commit
d017fe2d4b
@ -1926,6 +1926,8 @@ function is_radvd_enabled()
|
||||
|
||||
function service_control_start($name, $extras)
|
||||
{
|
||||
$filter = array();
|
||||
|
||||
if (!empty($extras['id'])) {
|
||||
$filter['id'] = $extras['id'];
|
||||
}
|
||||
@ -1997,6 +1999,8 @@ function service_control_stop($name, $extras)
|
||||
|
||||
function service_control_restart($name, $extras)
|
||||
{
|
||||
$filter = array();
|
||||
|
||||
if (!empty($extras['id'])) {
|
||||
$filter['id'] = $extras['id'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user