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

6.x
Dries Buytaert 2007-08-08 07:22:03 +00:00
parent 9405388d16
commit 68ac23cb6e
1 changed files with 1 additions and 1 deletions

View File

@ -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);