Zeile 131 | Zeile 131 |
---|
} else {
|
} else {
|
$forum_read = my_get_array_cookie("forumread", $fid);
| $forum_read = intval(my_get_array_cookie("forumread", $fid));
|
} if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)
| } if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)
|
Zeile 152 | Zeile 152 |
---|
if(!$lastread) {
|
if(!$lastread) {
|
$readcookie = $threadread = my_get_array_cookie("threadread", $thread['tid']);
| $readcookie = $threadread = intval(my_get_array_cookie("threadread", $thread['tid']));
|
if($readcookie > $forum_read) { $lastread = $readcookie;
| if($readcookie > $forum_read) { $lastread = $readcookie;
|
Zeile 170 | Zeile 170 |
---|
"order_by" => "dateline", "order_dir" => "asc" );
|
"order_by" => "dateline", "order_dir" => "asc" );
|
| $lastread = intval($lastread);
|
$query = $db->simple_select("posts", "pid", "tid='{$tid}' AND dateline > '{$lastread}'", $options); $newpost = $db->fetch_array($query); if($newpost['pid'])
| $query = $db->simple_select("posts", "pid", "tid='{$tid}' AND dateline > '{$lastread}'", $options); $newpost = $db->fetch_array($query); if($newpost['pid'])
|