diff --git a/pub/api/classes/API_system_modules.php b/pub/api/classes/API_system_modules.php index facacc9..22c569d 100644 --- a/pub/api/classes/API_system_modules.php +++ b/pub/api/classes/API_system_modules.php @@ -20,7 +20,7 @@ class API_system_modules extends API public function enableModule() { - $module_uuid_enabled = ($this->data['module_enabled']) ? 0 : 1; + $module_uuid_enabled = ($this->data['module_enabled']) ? 1 : 0; # Module 'system cannot be disabled' $query = "UPDATE system_modules SET module_enabled = ? WHERE module_uuid = ? AND module_slugify != 'system'"; diff --git a/pub/bin/pages/portal-management/pageSystemConfig.php b/pub/bin/pages/portal-management/pageSystemConfig.php index 56145c7..e1733c2 100644 --- a/pub/bin/pages/portal-management/pageSystemConfig.php +++ b/pub/bin/pages/portal-management/pageSystemConfig.php @@ -331,7 +331,7 @@ while ($module = $system_modules_data->fetch_assoc()) {