Da-Fecto / MarkupRSSEnhanced

1 stars 3 forks source link

Notices appearing before rss content #2

Open jliebermann opened 4 years ago

jliebermann commented 4 years ago

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/35/d675480839/htdocs/randr/site/assets/cache/FileCompiler/site/modules/MarkupRSSEnhanced/MarkupRSSEnhanced.module on line 246

Got this content repeated for each page sent to feed.

Temporarily fixed with:

// turn off warnings error_reporting(E_ERROR);

// send the output of the RSS feed, and you are done $rss->render($items);

NorHei commented 2 years ago

In line 246 of the module simply change if(count($field) === 0) { to if($field->count === 0) {