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
5ed64a71
Commit
5ed64a71
authored
Jul 18, 2005
by
Steven Wittens
Browse files
- Fix oopsie in node_load() after recent patch.
parent
87e5399a
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
5ed64a71
...
...
@@ -347,7 +347,7 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) {
}
else
{
// Turn the conditions into a query.
foreach
(
$
conditions
as
$key
=>
$value
)
{
foreach
(
$
param
as
$key
=>
$value
)
{
$cond
[]
=
'n.'
.
db_escape_string
(
$key
)
.
" = '"
.
db_escape_string
(
$value
)
.
"'"
;
}
$cond
=
implode
(
' AND '
,
$cond
);
...
...
modules/node/node.module
View file @
5ed64a71
...
...
@@ -347,7 +347,7 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) {
}
else
{
// Turn the conditions into a query.
foreach
(
$
conditions
as
$key
=>
$value
)
{
foreach
(
$
param
as
$key
=>
$value
)
{
$cond
[]
=
'n.'
.
db_escape_string
(
$key
)
.
" = '"
.
db_escape_string
(
$value
)
.
"'"
;
}
$cond
=
implode
(
' AND '
,
$cond
);
...
...
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