Permalink
Browse files

Merge branch 'wip-MDL-36915-MOODLE_22_STABLE' of git://github.com/abg…

…reeve/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 0cdd8fe + 96004c8 commit 624e1d1197a38a1b8dff226e7bab3ba0880eca64 Sam Hemelryk committed Dec 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/view.php
View
@@ -764,7 +764,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/locallib.php');

0 comments on commit 624e1d1

Please sign in to comment.