Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
68ac23cb
Commit
68ac23cb
authored
Aug 08, 2007
by
Dries
Browse files
- Patch
#165422
by hswong3i: status is an int. Required to make DB2 work.
parent
9405388d
Changes
1
Show whitespace changes
Inline
Side-by-side
includes/module.inc
View file @
68ac23cb
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment