Skip to content

Commit

Permalink
MDL-42605 portfolio_flickr: Do not auto select a set to export to
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart authored and Damyon Wiese committed Nov 7, 2013
1 parent 16dc4c1 commit e50117d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions portfolio/flickr/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,12 @@ public function export_config_form(&$mform) {

$mform->setDefaults(array('plugin_is_public' => true));

$sets = $this->get_sets();

if (!empty($sets)) {
$sets[0] = '----';
$rawsets = $this->get_sets();
if (!empty($rawsets)) {
$sets = array('0' => '----');
foreach ($rawsets as $key => $value) {
$sets[$key] = $value;
}
$mform->addElement('select', 'plugin_set', get_string('set', 'portfolio_flickr'), $sets);
}
}
Expand Down

0 comments on commit e50117d

Please sign in to comment.