Skip to content

Commit

Permalink
Merge pull request #32469 from hregis/fix_20_wrong_var_type
Browse files Browse the repository at this point in the history
FIX #32467
  • Loading branch information
eldy authored Dec 27, 2024
2 parents 5cc44e3 + 9c55e0f commit d6c644d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/class/doleditor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public function Create($noprint = 0, $morejs = '', $disallowAnyContent = true, $
$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">';
Expand Down

0 comments on commit d6c644d

Please sign in to comment.