silence various warnings with rss feed functionality

i did not add configuration directives as requested, as it would annoy
people that don't *want* to install the rss functionality.

Closes: #1099
This commit is contained in:
Antoine Beaupré 2008-03-14 04:11:07 +00:00
parent 8f8c888abd
commit aad2d5ef0d
1 changed files with 4 additions and 2 deletions

View File

@ -50,8 +50,10 @@ $mem->resetlast();
# this should work, since the debian package installs it in
# /usr/share/php, which is in the include path
if (include_once('magpierss/rss_fetch.inc')) {
$rss = fetch_rss( variable_get('rss_feed') );
$rss_url = variable_get('rss_feed');
$inc = @include_once('magpierss/rss_fetch.inc');
if ($inc && $rss_url) {
$rss = fetch_rss($rss_url);
if ($rss) {
echo "<h2>" . _("Latest news") . "</h2>";