Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…reeve/moodle into MOODLE_23_STABLE
  • Loading branch information...
commit 4dd8a25f5ddb61920f176e8eb691cf018e443133 2 parents 289f5e8 + 691cd37
@samhemelryk samhemelryk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/data/view.php
View
2  mod/data/view.php
@@ -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/locallib.php');
Please sign in to comment.
Something went wrong with that request. Please try again.