- Patch #122709 by kbahey: fixed SQL argument braino.
parent
5fdaa818da
commit
0ef3cd3e1e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue