diff --git a/Services/Dashboard/Block/classes/class.ilBlockDTO.php b/Services/Dashboard/Block/classes/class.ilBlockDTO.php index b6808acb5046..928f405d35d9 100644 --- a/Services/Dashboard/Block/classes/class.ilBlockDTO.php +++ b/Services/Dashboard/Block/classes/class.ilBlockDTO.php @@ -1,22 +1,23 @@ isValidModule($mod)) { - $this->setting->set("enable_" . $mod, (int) $active); + $this->setting->set("enable_" . $mod, $active ? '1' : '0'); } } @@ -62,7 +67,7 @@ public function enable(string $mod, bool $active): void public function isEnabled(string $mod): bool { if ($this->isValidModule($mod)) { - return (bool) $this->setting->get("enable_" . $mod, true); + return (bool) $this->setting->get("enable_" . $mod, '1'); } return false; }