[wp-cvs] wordpress wp-commentsrss2.php,1.22,1.23

Matthew Mullenweg saxmatt at users.sourceforge.net
Tue Dec 14 09:48:36 UTC 2004


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20864

Modified Files:
	wp-commentsrss2.php 
Log Message:
Prevent foreach errors, should probably be moved to new loop method?

Index: wp-commentsrss2.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-commentsrss2.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** wp-commentsrss2.php	27 Nov 2004 00:42:55 -0000	1.22
--- wp-commentsrss2.php	14 Dec 2004 09:48:34 -0000	1.23
***************
*** 15,19 ****
  <?php
  $i = 0;
! foreach ($posts as $post) { start_wp();
  	if ($i < 1) {
  		$i++;
--- 15,19 ----
  <?php
  $i = 0;
! if ($posts) { foreach ($posts as $post) { start_wp();
  	if ($i < 1) {
  		$i++;
***************
*** 69,73 ****
  		}
  	}
! }
  ?>
  </channel>
--- 69,73 ----
  		}
  	}
! } }
  ?>
  </channel>




More information about the cvs mailing list