Commit 4e4e2b49 authored by Dries's avatar Dries

- Patch #227548 by AjK, Heine, Stefan Esser, hswong3i, dmitrig01: remove...

- Patch #227548 by AjK, Heine, Stefan Esser, hswong3i, dmitrig01: remove useless db_escape_string().
parent 6c1068e4
......@@ -746,7 +746,7 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) {
elseif (is_array($param)) {
// Turn the conditions into a query.
foreach ($param as $key => $value) {
$cond[] = 'n.' . db_escape_string($key) . " = '%s'";
$cond[] = 'n.' . db_escape_table($key) . " = '%s'";
$arguments[] = $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