Skip to content

Commit

Permalink
MDL-61248 admin: fix incorrectly initialized property
Browse files Browse the repository at this point in the history
  • Loading branch information
ak4t0sh committed Mar 23, 2018
1 parent c684683 commit a27e44f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/adminlib.php
Expand Up @@ -2960,6 +2960,7 @@ class admin_setting_configselect extends admin_setting {
public function __construct($name, $visiblename, $description, $defaultsetting, $choices) {
// Look for optgroup and single options.
if (is_array($choices)) {
$this->choices = [];
foreach ($choices as $key => $val) {
if (is_array($val)) {
$this->optgroups[$key] = $val;
Expand Down

0 comments on commit a27e44f

Please sign in to comment.