diff --git a/htdocs/core/class/doleditor.class.php b/htdocs/core/class/doleditor.class.php index b8f63e352fc0f..302e60bfc9b21 100644 --- a/htdocs/core/class/doleditor.class.php +++ b/htdocs/core/class/doleditor.class.php @@ -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.= '