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

6.x
Dries Buytaert 2007-03-07 12:27:31 +00:00
parent 5fdaa818da
commit 0ef3cd3e1e
1 changed files with 1 additions and 1 deletions

View File

@ -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);