From 9bb5afd9a74a5b50c55c7313be50ba9dfd8b472e Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 23 Jun 2024 14:42:16 +0200 Subject: [PATCH] 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 --- setup/tools/setupScript.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/setup/tools/setupScript.class.php b/setup/tools/setupScript.class.php index c8b7837d..ab1c39aa 100644 --- a/setup/tools/setupScript.class.php +++ b/setup/tools/setupScript.class.php @@ -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 {