Commit aad2d5ef authored by Antoine Beaupré's avatar Antoine Beaupré

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
parent 8f8c888a
......@@ -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>";
......
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