Commit 0ef3cd3e authored by Dries's avatar Dries

- Patch #122709 by kbahey: fixed SQL argument braino.

parent 5fdaa818
...@@ -103,7 +103,7 @@ function node_last_viewed($nid) { ...@@ -103,7 +103,7 @@ function node_last_viewed($nid) {
static $history; static $history;
if (!isset($history[$nid])) { if (!isset($history[$nid])) {
$history[$nid] = db_fetch_object(db_query("SELECT timestamp FROM {history} WHERE uid = '$user->uid' AND nid = %d", $nid)); $history[$nid] = db_fetch_object(db_query("SELECT timestamp FROM {history} WHERE uid = %d AND nid = %d", $user->uid, $nid));
} }
return (isset($history[$nid]->timestamp) ? $history[$nid]->timestamp : 0); return (isset($history[$nid]->timestamp) ? $history[$nid]->timestamp : 0);
......
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