Skip to content

Commit

Permalink
Merge branch 'wip-MDL-36915-master' of git://github.com/abgreeve/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Dec 9, 2012
2 parents d229ac0 + dfdd9c9 commit 6d48072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/data/view.php
Expand Up @@ -762,7 +762,7 @@
$records = array();
}

if ($mode == '' && !empty($CFG->enableportfolios)) {
if ($mode == '' && !empty($CFG->enableportfolios) && !empty($records)) {
require_once($CFG->libdir . '/portfoliolib.php');
$button = new portfolio_add_button();
$button->set_callback_options('data_portfolio_caller', array('id' => $cm->id), 'mod_data');
Expand Down

0 comments on commit 6d48072

Please sign in to comment.