Skip to content
Snippets Groups Projects
Commit 68ac23cb authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #165422 by hswong3i: status is an int. Required to make DB2 work.

parent 9405388d
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -243,7 +243,7 @@ function module_enable($module_list) {
$invoke_modules = array();
foreach ($module_list as $module) {
$existing = db_fetch_object(db_query("SELECT status FROM {system} WHERE type = 'module' AND name = '%s'", $module));
if ($existing->status === '0') {
if ($existing->status == 0) {
module_load_install($module);
db_query("UPDATE {system} SET status = 1, throttle = 0 WHERE type = 'module' AND name = '%s'", $module);
drupal_load('module', $module);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment