MDL-70457 forms: php74 fix for the (not used in core) date element

Curly brackets to access by index to strings or arrays is
deprecated since php74.
This commit is contained in:
Eloy Lafuente (stronk7)
2021-02-26 11:55:24 +01:00
parent 95dd305cc6
commit 599567977f
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -308,7 +308,7 @@ class HTML_QuickForm_date extends HTML_QuickForm_group
$locale =& $this->_locale[$this->_options['language']];
$backslash = false;
for ($i = 0, $length = strlen($this->_options['format']); $i < $length; $i++) {
$sign = $this->_options['format']{$i};
$sign = $this->_options['format'][$i];
if ($backslash) {
$backslash = false;
$separator .= $sign;
@@ -507,4 +507,4 @@ class HTML_QuickForm_date extends HTML_QuickForm_group
// }}}
}
?>
?>