mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
portfolio MDL-20894 better checking of no common formats
This commit is contained in:
parent
8a709ecfc1
commit
3ec8d78626
1 changed files with 3 additions and 1 deletions
|
@ -242,7 +242,9 @@ class portfolio_add_button {
|
|||
$linkoutput .= '&instance=' . $instance->get('id');
|
||||
}
|
||||
else {
|
||||
$selectoutput = portfolio_instance_select($this->instances, $this->formats, $this->callbackclass, 'instance', true);
|
||||
if (!$selectoutput = portfolio_instance_select($this->instances, $this->formats, $this->callbackclass, 'instance', true)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($addstr)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue