Permalink
Browse files

MDL-36915 - mod/data: A database with no entries no longer displays t…

…he export to portfolio button.
  • Loading branch information...
1 parent f42c34a commit dfdd9c9b114ac4fdcfeb414b377bb5bb6404f17b @abgreeve abgreeve committed Nov 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/view.php
View
@@ -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');

0 comments on commit dfdd9c9

Please sign in to comment.