Merge pull request #32469 from hregis/fix_20_wrong_var_type

FIX #32467
This commit is contained in:
Laurent Destailleur 2024-12-27 14:29:56 +01:00 committed by GitHub
commit d6c644da1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,6 +160,8 @@ class DolEditor
$found = 0;
$out = '';
$this->content = ($this->content ?? ''); // to avoid htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
if (in_array($this->tool, array('textarea', 'ckeditor'))) {
$found = 1;
//$out.= '<textarea id="'.$this->htmlname.'" name="'.$this->htmlname.'" '.($this->readonly?' disabled':'').' rows="'.$this->rows.'"'.(preg_match('/%/',$this->cols)?' style="margin-top: 5px; width: '.$this->cols.'"':' cols="'.$this->cols.'"').' class="flat">';