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
4fad80e5
Commit
4fad80e5
authored
May 10, 2004
by
Dries
Browse files
- Patch
#7638
by nereocystis: fixed PostgreSQL (ANSI SQL) compatibility bug in the comment module.
parent
1ad9afb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment.module
View file @
4fad80e5
...
...
@@ -986,10 +986,10 @@ function comment_mod_matrix($edit) {
db_query
(
"DELETE FROM
{
moderation_roles
}
"
);
foreach
(
$edit
as
$role_id
=>
$votes
)
{
foreach
(
$votes
as
$mid
=>
$value
)
{
$sql
[]
=
"('
$mid
', '
$role_id
', '"
.
(
$value
?
$value
:
0
)
.
"')"
;
$sql
=
"('
$mid
', '
$role_id
', '"
.
(
$value
?
$value
:
0
)
.
"')"
;
db_query
(
"INSERT INTO
{
moderation_roles
}
(mid, rid, value) VALUES "
.
$sql
);
}
}
db_query
(
"INSERT INTO
{
moderation_roles
}
(mid, rid, value) VALUES "
.
implode
(
", "
,
$sql
));
drupal_set_message
(
t
(
"the vote values have been saved."
));
}
...
...
modules/comment/comment.module
View file @
4fad80e5
...
...
@@ -986,10 +986,10 @@ function comment_mod_matrix($edit) {
db_query
(
"DELETE FROM
{
moderation_roles
}
"
);
foreach
(
$edit
as
$role_id
=>
$votes
)
{
foreach
(
$votes
as
$mid
=>
$value
)
{
$sql
[]
=
"('
$mid
', '
$role_id
', '"
.
(
$value
?
$value
:
0
)
.
"')"
;
$sql
=
"('
$mid
', '
$role_id
', '"
.
(
$value
?
$value
:
0
)
.
"')"
;
db_query
(
"INSERT INTO
{
moderation_roles
}
(mid, rid, value) VALUES "
.
$sql
);
}
}
db_query
(
"INSERT INTO
{
moderation_roles
}
(mid, rid, value) VALUES "
.
implode
(
", "
,
$sql
));
drupal_set_message
(
t
(
"the vote values have been saved."
));
}
...
...
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