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,10 +277,12 @@ class PluginExportLeap extends PluginExport {
ON b.name = bi.blocktype
WHERE view = ?',
array($viewid));
foreach ($blocktypes as $blocktype) {
$classname = 'LeapExport' . $blocktype->blocktype;
if (class_exists($classname) && method_exists($classname, 'get_blocktype_export_data')) {
call_user_func_array(array($classname, 'get_blocktype_export_data'), array(&$config, $viewid, $oldlayout));
if ($blocktypes) {
foreach ($blocktypes as $blocktype) {
$classname = 'LeapExport' . $blocktype->blocktype;
if (class_exists($classname) && method_exists($classname, 'get_blocktype_export_data')) {
call_user_func_array(array($classname, 'get_blocktype_export_data'), array(&$config, $viewid, $oldlayout));
}
}
}
}
......
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