Commit 134f7cda authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

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

behatnotneeded

Change-Id: Ia1462ddd907bb6ca8967d86099658fe2dfdef152
parent a747728c
......@@ -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