WordPress.org

Make WordPress Core

Changeset 1957


Ignore:
Timestamp:
12/14/04 09:48:34 (9 years ago)
Author:
saxmatt
Message:

Prevent foreach errors, should probably be moved to new loop method?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-commentsrss2.php

    r1888 r1957  
    1515<?php 
    1616$i = 0; 
    17 foreach ($posts as $post) { start_wp(); 
     17if ($posts) { foreach ($posts as $post) { start_wp(); 
    1818    if ($i < 1) { 
    1919        $i++; 
     
    6969        } 
    7070    } 
    71 } 
     71} } 
    7272?> 
    7373</channel> 
Note: See TracChangeset for help on using the changeset viewer.