Skip to content

Commit

Permalink
Merge branch '46335-26' of git://github.com/samhemelryk/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_26_STABLE
  • Loading branch information
danpoltawski committed Jul 21, 2014
2 parents b73aaa6 + 4a77758 commit c081554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backup/util/ui/backup_ui_setting.class.php
Expand Up @@ -139,7 +139,8 @@ public function get_param_validation() {
* @param string $label
*/
public function set_label($label) {
if ((string)$label === '' || $label !== clean_param($label, PARAM_TEXT)) {
$label = (string)$label;
if ($label === '' || $label !== clean_param($label, PARAM_TEXT)) {
throw new base_setting_ui_exception('setting_invalid_ui_label');
}
$this->label = $label;
Expand Down

0 comments on commit c081554

Please sign in to comment.