From 68ac23cb6ed0d54b844ca5151977fdb05c294f6a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 8 Aug 2007 07:22:03 +0000 Subject: [PATCH] - Patch #165422 by hswong3i: status is an int. Required to make DB2 work. --- includes/module.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/module.inc b/includes/module.inc index 0268bcb640f..242b6c5604c 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -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);