- Patch #165422 by hswong3i: status is an int. Required to make DB2 work.
parent
9405388d16
commit
68ac23cb6e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue