Trying to get property of non-object

Help
2006-09-21
2013-04-30
  • I get this PHP Notice:  Trying to get property of non-object

    when executing

    $rss = @fetch_rss($url);
    #check for errors.
    if ($rss->ERROR) {
       #return "Feed error"; #localize...
    }

    I use PHP 5

    What has to be done ?

    HeinzJ

     
    • tower
      tower
      2007-09-28

      Replace

              elseif ( $this->is_rss() ) {
                  $this->channel['tagline'] = $this->channel['description'];

      width
            
              elseif ( $this->is_rss() ) {
              $this->channel['description'] = $this->channel['tagline'];