Merge branch 'MDL-77081-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-01-31 21:45:05 +08:00
commit 7dfb4c229c
3 changed files with 4 additions and 3 deletions

View File

@ -3195,7 +3195,7 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
$html = str_replace('{groupname}', 'data-groupname="'.$group->getName().'"', $html);
$html = str_replace('{typeclass}', 'fgroup', $html);
$html = str_replace('{type}', 'group', $html);
$html = str_replace('{class}', $group->getAttribute('class'), $html);
$html = str_replace('{class}', $group->getAttribute('class') ?? '', $html);
$emptylabel = '';
if ($group->getLabel() == '') {
$emptylabel = 'femptylabel';

View File

@ -199,7 +199,7 @@ class HTML_QuickForm_textarea extends HTML_QuickForm_element
return $this->_getTabs() .
'<textarea' . $this->_getAttrString($this->_attributes) . '>' .
// because we wrap the form later we don't want the text indented
preg_replace("/(\r\n|\n|\r)/", '&#010;', htmlspecialchars($this->_value)) .
preg_replace("/(\r\n|\n|\r)/", '&#010;', htmlspecialchars($this->_value ?? '')) .
'</textarea>';
}
} //end func toHtml

View File

@ -32,7 +32,8 @@ MDL-70457 - PHP 7.4 curly brackets string access fix.
MDL-71126 - Quiz: Manual grading page size preference can get stuck at 0
Including in this change:
- New positiveint regex rule to check if the value is a positive integer
MDL-76102 - PHP 8.1 passing null to a non-nullable argument of a built-in function is deprecated
MDL-76102 / MDL-77081
PHP 8.1 passing null to a non-nullable argument of a built-in function is deprecated
Pear
====