Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0ef3cd3e
Commit
0ef3cd3e
authored
Mar 07, 2007
by
Dries
Browse files
- Patch
#122709
by kbahey: fixed SQL argument braino.
parent
5fdaa818
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
0ef3cd3e
...
...
@@ -103,7 +103,7 @@ function node_last_viewed($nid) {
static
$history
;
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment