Commit 94027a7c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fixing RSS warnings

parent 85e9d213
......@@ -18,6 +18,7 @@
$file=fopen("news.msg","r");
$count = 0;
$msg = "";
if(!$file)
return(0);
......@@ -35,9 +36,12 @@
$ex=explode("|",$msg);
$date = $ex[1];
$title = $ex[2];
$short = $ex[3];
if( count($ex) >= 4)
if( count($ex) > 3)
$short = $ex[3];
if( count($ex) > 4)
$remain = $ex[4];
else
$remain = "";
if( $count ++ < 15 ) {
$newItem = $TestFeed->createNewItem();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment