Update of /cvsroot/openfirst/news/rss
In directory sc8-pr-cvs1:/tmp/cvs-serv13546
Modified Files:
rss.php
Log Message:
Fixed error with viewing all headlines related to the stream. Bug credit: myself :-p
Index: rss.php
===================================================================
RCS file: /cvsroot/openfirst/news/rss/rss.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** rss.php 22 Oct 2003 01:00:36 -0000 1.4
--- rss.php 11 Nov 2003 02:31:04 -0000 1.5
***************
*** 28,32 ****
if(isset($_GET['headlines'])){
! $limit = $_GET['headlines'];
} else {
$limit = 5;
--- 28,36 ----
if(isset($_GET['headlines'])){
! if($_GET['headlines'] == "all"){
! $limit = 9999999;
! }else{
! $limit = $_GET['headlines'];
! }
} else {
$limit = 5;
***************
*** 76,80 ****
// Data for a single RSS item
! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit);
while($news = ofirst_dbfetch_object($query)){
--- 80,84 ----
// Data for a single RSS item
! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit) or die(mysql_error());
while($news = ofirst_dbfetch_object($query)){
|