diff --git a/application/modules/admin/controllers/admin/Layouts.php b/application/modules/admin/controllers/admin/Layouts.php index 1a47e944b..a2f3efb51 100644 --- a/application/modules/admin/controllers/admin/Layouts.php +++ b/application/modules/admin/controllers/admin/Layouts.php @@ -336,7 +336,7 @@ public function advSettingsShowAction() if ($this->getRequest()->isPost()) { $postedSettings = []; foreach ($settings as $key => $value) { - if ($this->getRequest()->getPost($key) && $value['type'] !== 'separator') { + if ($value['type'] !== 'separator') { $layoutAdvSettingsModel = new LayoutAdvSettingsModel(); $layoutAdvSettingsModel->setLayoutKey($layoutKey) ->setKey($key) diff --git a/application/modules/training/config/config.php b/application/modules/training/config/config.php index c674d6663..748e3687b 100644 --- a/application/modules/training/config/config.php +++ b/application/modules/training/config/config.php @@ -13,7 +13,7 @@ class Config extends \Ilch\Config\Install { public $config = [ 'key' => 'training', - 'version' => '1.8.0', + 'version' => '1.8.1', 'icon_small' => 'fa-solid fa-graduation-cap', 'author' => 'Veldscholten, Kevin', 'link' => 'https://ilch.de', @@ -263,7 +263,9 @@ public function getUpdate(string $installedVersion): string $this->db()->query('ALTER TABLE `[prefix]_training_entrants` ADD INDEX `FK_[prefix]_training_entrants_[prefix]_users` (`user_id`) USING BTREE;'); $this->db()->query('ALTER TABLE `[prefix]_training_entrants` ADD CONSTRAINT `FK_[prefix]_training_entrants_[prefix]_training` FOREIGN KEY (`train_id`) REFERENCES `[prefix]_training` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE;'); $this->db()->query('ALTER TABLE `[prefix]_training_entrants` ADD CONSTRAINT `FK_[prefix]_training_entrants_[prefix]_users` FOREIGN KEY (`user_id`) REFERENCES `[prefix]_users` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE;'); - // no break + // no break + case "1.8.0": + // no break } return '"' . $this->config['key'] . '" Update-function executed.'; diff --git a/application/modules/training/mappers/Entrants.php b/application/modules/training/mappers/Entrants.php index 8eefa7056..ff6e77e6c 100644 --- a/application/modules/training/mappers/Entrants.php +++ b/application/modules/training/mappers/Entrants.php @@ -75,7 +75,7 @@ public function getEntrants(int $trainId, int $userId): ?EntrantsModel * Gets the Event entrants. * * @param int $trainId - * @return EntrantsModel[]|[] + * @return EntrantsModel[]|null */ public function getEntrantsById(int $trainId): ?array { diff --git a/application/modules/training/views/index/index.php b/application/modules/training/views/index/index.php index f730bceed..a387693ce 100644 --- a/application/modules/training/views/index/index.php +++ b/application/modules/training/views/index/index.php @@ -31,7 +31,7 @@