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:
Sarjuuk
2024-06-23 14:42:16 +02:00
parent 615c203c7a
commit 9bb5afd9a7

View File

@@ -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
{