Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b20ef6c6
Commit
b20ef6c6
authored
Apr 09, 2020
by
Robert Lyon
Committed by
Gerrit Code Review
Apr 09, 2020
Browse files
Merge "Bug 1871504: export-check variable is not empty before using in foreach"
parents
cfa73c44
134f7cda
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/export/leap/lib.php
View file @
b20ef6c6
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment