Changeset 1260 in ExiteCMS
- Timestamp:
- 02/11/08 09:42:47 (4 years ago)
- File:
-
- 1 edited
-
trunk/forum/viewthread.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/viewthread.php
r1256 r1260 377 377 } 378 378 379 // update the threads_read record for this user and thread 379 // update the threads_read record for this user and thread when the last_post_datestamp is newer 380 380 if (iMEMBER && $last_post_datestamp) { 381 $result = dbquery("UPDATE ".$db_prefix."threads_read SET thread_last_read = '".$last_post_datestamp."', thread_page = '".min($rowstart, $thread_page)."' WHERE user_id = '".$userdata['user_id']."' AND thread_id = '".$thread_id."' ");381 $result = dbquery("UPDATE ".$db_prefix."threads_read SET thread_last_read = '".$last_post_datestamp."', thread_page = '".min($rowstart, $thread_page)."' WHERE user_id = '".$userdata['user_id']."' AND thread_id = '".$thread_id."' AND thread_last_read < '".$last_post_datestamp."'"); 382 382 } 383 383
Note: See TracChangeset
for help on using the changeset viewer.
