portfolio MDL-20894 better checking of no common formats

This commit is contained in:
Penny Leach 2009-11-18 14:06:03 +00:00
parent 8a709ecfc1
commit 3ec8d78626

View file

@ -242,7 +242,9 @@ class portfolio_add_button {
$linkoutput .= '&instance=' . $instance->get('id'); $linkoutput .= '&instance=' . $instance->get('id');
} }
else { 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)) { if (empty($addstr)) {