Commit 68ac23cb authored by Dries's avatar Dries
Browse files

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

parent 9405388d
...@@ -243,7 +243,7 @@ function module_enable($module_list) { ...@@ -243,7 +243,7 @@ function module_enable($module_list) {
$invoke_modules = array(); $invoke_modules = array();
foreach ($module_list as $module) { foreach ($module_list as $module) {
$existing = db_fetch_object(db_query("SELECT status FROM {system} WHERE type = 'module' AND name = '%s'", $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); module_load_install($module);
db_query("UPDATE {system} SET status = 1, throttle = 0 WHERE type = 'module' AND name = '%s'", $module); db_query("UPDATE {system} SET status = 1, throttle = 0 WHERE type = 'module' AND name = '%s'", $module);
drupal_load('module', $module); drupal_load('module', $module);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment