Move the Power, Plugin and Module builders into the container. Many more PHP 8 improvments.
This commit is contained in:
@@ -542,7 +542,7 @@ class Power implements PowerInterface
|
||||
$this->active[$guid]->use_selection
|
||||
)) ? json_decode((string) $this->active[$guid]->use_selection, true) : null;
|
||||
|
||||
if ($this->active[$guid]->use_selection)
|
||||
if (ArrayHelper::check($this->active[$guid]->use_selection))
|
||||
{
|
||||
$use = array_values(array_map(function ($u) use(&$as) {
|
||||
// track the AS options
|
||||
@@ -551,6 +551,10 @@ class Power implements PowerInterface
|
||||
return $u['use'];
|
||||
}, $this->active[$guid]->use_selection));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->active[$guid]->use_selection = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -569,7 +573,7 @@ class Power implements PowerInterface
|
||||
$this->active[$guid]->load_selection
|
||||
)) ? json_decode((string) $this->active[$guid]->load_selection, true) : null;
|
||||
|
||||
if ($this->active[$guid]->load_selection)
|
||||
if (ArrayHelper::check($this->active[$guid]->load_selection))
|
||||
{
|
||||
// load use ids
|
||||
array_map(
|
||||
@@ -578,6 +582,10 @@ class Power implements PowerInterface
|
||||
$this->active[$guid]->load_selection
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->active[$guid]->load_selection = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user