Commit 5ed64a71 authored by Steven Wittens's avatar Steven Wittens

- Fix oopsie in node_load() after recent patch.

parent 87e5399a
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment