Commit b20ef6c6 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1871504: export-check variable is not empty before using in foreach"

parents cfa73c44 134f7cda
......@@ -277,6 +277,7 @@ class PluginExportLeap extends PluginExport {
ON b.name = bi.blocktype
WHERE view = ?',
array($viewid));
if ($blocktypes) {
foreach ($blocktypes as $blocktype) {
$classname = 'LeapExport' . $blocktype->blocktype;
if (class_exists($classname) && method_exists($classname, 'get_blocktype_export_data')) {
......@@ -284,6 +285,7 @@ class PluginExportLeap extends PluginExport {
}
}
}
}
/**
* Export the views
......
Supports Markdown
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