Commit 0a537e9b authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Display old external feeds correctly (when count config is not set)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 47a4b2c4
......@@ -62,7 +62,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
$data->image = unserialize($data->image);
// only keep the number of entries the user asked for
$chunks = array_chunk($data->content, $configdata['count']);
$chunks = array_chunk($data->content, isset($configdata['count']) ? $configdata['count'] : 10);
$data->content = $chunks[0];
// Attempt to fix relative URLs in the feeds
......
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