Permalink
Browse files

Merge branch 'MDL-25971' of git://github.com/timhunt/moodle

  • Loading branch information...
2 parents 616e81c + 1a09fa6 commit c4592a2ac030bc25f16f70c3d67f4e11a1f909f5 Sam Hemelryk committed Jan 17, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/outputcomponents.php
@@ -1038,6 +1038,12 @@ public static function select(array $options, $name, $selected = '', $nothing =
$attributes['name'] = $name;
+ if (!empty($attributes['disabled'])) {
+ $attributes['disabled'] = 'disabled';
+ } else {
+ unset($attributes['disabled']);
+ }
+
$output = '';
foreach ($options as $value=>$label) {
if (is_array($label)) {

0 comments on commit c4592a2

Please sign in to comment.