Module enablement toggle feedback is fixed

This commit is contained in:
2026-06-13 00:05:19 +02:00
parent bc8976c18e
commit 1374ba2f13
2 changed files with 2 additions and 2 deletions

View File

@@ -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'";