Commit f990fc6f authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent notice when rendering the RSS feed blocktype.


Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent b4db2b49
......@@ -55,7 +55,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
public static function render_instance(BlockInstance $instance, $editing=false) {
$configdata = $instance->get('configdata');
if ($configdata['feedid']) {
if (!empty($configdata['feedid'])) {
$data = get_record('blocktype_externalfeed_data', 'id', $configdata['feedid']);
$data->content = unserialize($data->content);
......
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