Setup/CustomData
* removed unused option to have custom data defined in code * table `aowow_setup_custom_data` should be used instead * this kills a "creation of dynamic property" deprecation notice
This commit is contained in:
parent
615c203c7a
commit
9bb5afd9a7
1 changed files with 1 additions and 5 deletions
|
|
@ -42,11 +42,7 @@ trait TrCustomData
|
|||
public function applyCustomData() : bool
|
||||
{
|
||||
$ok = true;
|
||||
$this->customData = $this->customData ?? [];
|
||||
if ($cd = DB::Aowow()->selectCol('SELECT `entry` AS ARRAY_KEY, `field` AS ARRAY_KEY2, `value` FROM ?_setup_custom_data WHERE `command` = ?', $this->getName()))
|
||||
$this->customData += $cd;
|
||||
|
||||
foreach ($this->customData as $id => $data)
|
||||
foreach ((DB::Aowow()->selectCol('SELECT `entry` AS ARRAY_KEY, `field` AS ARRAY_KEY2, `value` FROM ?_setup_custom_data WHERE `command` = ?', $this->getName()) ?: []) as $id => $data)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue