Changeset 855

Show
Ignore:
Timestamp:
09/05/05 10:13:03 (3 years ago)
Author:
mbonetti
Message:

fixed a bug where we wouldn't redirect correctly after marking a feed as read, I think

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/feed.php

    r854 r855  
    282282        } 
    283283        rss_query($sql); 
     284         
     285        $sql = "select count(*) from " .getTable("item") . " i " 
     286        ." where i.unread & " .FEED_MODE_UNREAD_STATE 
     287         ." and i.cid=$cid" 
     288         ." and not(i.unread & " . FEED_MODE_DELETED_STATE  .") "; 
     289        if (hidePrivate()) { 
     290            $sql .=" and not(i.unread & " . FEED_MODE_PRIVATE_STATE .") "; 
     291        } 
     292        list($hasMoreUnreads) = rss_fetch_row(rss_query($sql)); 
    284293 
    285294 
     
    318327             
    319328            if ($unread_id == $cid) { 
    320                 $next_unread_id=$unread_id; 
    321                 break; 
     329                $next_ok = true; 
     330                if ($hasMoreUnreads) { 
     331                    $next_unread_id=$unread_id; 
     332                    break; 
     333                } 
    322334            } 
    323335         }