Changeset 2103

Show
Ignore:
Timestamp:
03/14/08 05:11:07 (2 months ago)
Author:
anarcat
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/admin/main.php

    r2098 r2103  
    5151# this should work, since the debian package installs it in 
    5252# /usr/share/php, which is in the include path 
    53 if (include_once('magpierss/rss_fetch.inc')) { 
    54   $rss = fetch_rss( variable_get('rss_feed') ); 
     53$rss_url = variable_get('rss_feed'); 
     54$inc = @include_once('magpierss/rss_fetch.inc'); 
     55if ($inc && $rss_url) { 
     56  $rss = fetch_rss($rss_url); 
    5557 
    5658  if ($rss) {