Commit 77b428a0 authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent SQL explosion if an externalfeed's 'feedid' config isn't set right.

Signed-off-by: default avatarNigel McNie <>
parent 722fa326
......@@ -99,7 +99,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
public static function instance_config_form($instance) {
$configdata = $instance->get('configdata');
if (isset($configdata['feedid'])) {
if (!empty($configdata['feedid'])) {
$url = get_field('blocktype_externalfeed_data', 'url', 'id', $configdata['feedid']);
else {
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