Commit 31c42a9c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Silence warning on export caused by externalfeed blocks without feed id


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent dbb85472
......@@ -411,7 +411,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
*/
public static function export_blockinstance_config(BlockInstance $bi) {
$config = $bi->get('configdata');
$url = ($config['feedid']) ? get_field('blocktype_externalfeed_data', 'url', 'id', $config['feedid']) : '';
$url = !empty($config['feedid']) ? get_field('blocktype_externalfeed_data', 'url', 'id', $config['feedid']) : '';
return array(
'url' => $url,
'full' => isset($config['full']) ? ($config['full'] ? 1 : 0) : 0,
......
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