MDL-60281 forms: PHP7.2 deprecations in PEAR

This commit is contained in:
Marina Glancy
2017-10-16 09:37:20 +08:00
parent 33683bc80c
commit e3e3e0abb7
4 changed files with 20 additions and 10 deletions
+6 -2
View File
@@ -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);