MDL-60281 forms: PHP7.2 deprecations in PEAR
This commit is contained in:
@@ -351,14 +351,18 @@ class HTML_QuickForm_date extends HTML_QuickForm_group
|
||||
$this->_options['maxYear'],
|
||||
$this->_options['minYear'] > $this->_options['maxYear']? -1: 1
|
||||
);
|
||||
array_walk($options, create_function('&$v,$k','$v = substr($v,-2);'));
|
||||
array_walk($options, function(&$v, $k) {
|
||||
$v = substr($v, -2);
|
||||
});
|
||||
break;
|
||||
case 'h':
|
||||
$options = $this->_createOptionList(1, 12);
|
||||
break;
|
||||
case 'g':
|
||||
$options = $this->_createOptionList(1, 12);
|
||||
array_walk($options, create_function('&$v,$k', '$v = intval($v);'));
|
||||
array_walk($options, function(&$v, $k) {
|
||||
$v = intval($v);
|
||||
});
|
||||
break;
|
||||
case 'H':
|
||||
$options = $this->_createOptionList(0, 23);
|
||||
|
||||
Reference in New Issue
Block a user